[Glibc-bsd-commits] r3431 - in trunk/freebsd-libs/debian: . patches
Guillem Jover
guillem at alioth.debian.org
Wed Jun 8 01:36:31 UTC 2011
Author: guillem
Date: 2011-06-08 01:36:31 +0000 (Wed, 08 Jun 2011)
New Revision: 3431
Modified:
trunk/freebsd-libs/debian/changelog
trunk/freebsd-libs/debian/patches/03_libsbuf.diff
Log:
Make <sys/sbuf.h> usable
Change __va_list to va_list.
Include <sys/types.h> and <stdarg.h>.
Modified: trunk/freebsd-libs/debian/changelog
===================================================================
--- trunk/freebsd-libs/debian/changelog 2011-06-08 01:28:06 UTC (rev 3430)
+++ trunk/freebsd-libs/debian/changelog 2011-06-08 01:36:31 UTC (rev 3431)
@@ -5,6 +5,9 @@
- Add pkg-config to Build-Depends.
- Remove some now obsolete porting code.
* Remove ‘XC-’ prefix from Package-Type field.
+ * Make <sys/sbuf.h> usable:
+ - Change __va_list to va_list.
+ - Include <sys/types.h> and <stdarg.h>.
-- Guillem Jover <guillem at debian.org> Wed, 08 Jun 2011 03:17:34 +0200
Modified: trunk/freebsd-libs/debian/patches/03_libsbuf.diff
===================================================================
--- trunk/freebsd-libs/debian/patches/03_libsbuf.diff 2011-06-08 01:28:06 UTC (rev 3430)
+++ trunk/freebsd-libs/debian/patches/03_libsbuf.diff 2011-06-08 01:36:31 UTC (rev 3431)
@@ -1,6 +1,12 @@
+---
+ lib/libsbuf/Makefile | 1 +
+ sys/kern/subr_sbuf.c | 1 +
+ sys/sys/sbuf.h | 9 ++++-----
+ 3 files changed, 6 insertions(+), 5 deletions(-)
+
--- a/lib/libsbuf/Makefile
+++ b/lib/libsbuf/Makefile
-@@ -4,6 +4,7 @@
+@@ -4,6 +4,7 @@ LIB= sbuf
SHLIBDIR?= /lib
SRCS= subr_sbuf.c
WARNS?= 2
@@ -10,7 +16,7 @@
--- a/sys/kern/subr_sbuf.c
+++ b/sys/kern/subr_sbuf.c
-@@ -44,6 +44,7 @@
+@@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$");
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -20,16 +26,17 @@
#include <sys/sbuf.h>
--- a/sys/sys/sbuf.h
+++ b/sys/sys/sbuf.h
-@@ -31,8 +31,6 @@
+@@ -31,7 +31,8 @@
#ifndef _SYS_SBUF_H_
#define _SYS_SBUF_H_
-#include <sys/_types.h>
--
++#include <sys/types.h>
++#include <stdarg.h>
+
/*
* Structure definition
- */
-@@ -64,10 +62,8 @@
+@@ -64,10 +65,8 @@ int sbuf_bcat(struct sbuf *, const voi
int sbuf_bcpy(struct sbuf *, const void *, size_t);
int sbuf_cat(struct sbuf *, const char *);
int sbuf_cpy(struct sbuf *, const char *);
@@ -38,7 +45,7 @@
-int sbuf_vprintf(struct sbuf *, const char *, __va_list)
- __printflike(2, 0);
+int sbuf_printf(struct sbuf *, const char *, ...);
-+int sbuf_vprintf(struct sbuf *, const char *, __va_list);
++int sbuf_vprintf(struct sbuf *, const char *, va_list);
int sbuf_putc(struct sbuf *, int);
int sbuf_trim(struct sbuf *);
int sbuf_overflowed(struct sbuf *);
More information about the Glibc-bsd-commits
mailing list