Package: freebsd-libs / 10.3~svn296373-10

03_libsbuf.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/lib/libsbuf/Makefile
+++ b/lib/libsbuf/Makefile
@@ -3,6 +3,7 @@
 LIB=		sbuf
 SHLIBDIR?= 	/lib
 SRCS=		subr_prf.c subr_sbuf.c
+CFLAGS+=	-I${.CURDIR}/../../sys
 
 SHLIB_MAJOR	= 6
 
--- a/sys/sys/sbuf.h
+++ b/sys/sys/sbuf.h
@@ -31,7 +31,8 @@
 #ifndef _SYS_SBUF_H_
 #define	_SYS_SBUF_H_
 
-#include <sys/_types.h>
+#include <sys/types.h>
+#include <stdarg.h>
 
 struct sbuf;
 typedef int (sbuf_drain_func)(void *, const char *, int);