Fix build on FreeBSD 4.x.

PR:		ports/104320 (partial)
Submitted by:	"Alex Samorukov" <samm@os2.kiev.ua> (maintainer)
This commit is contained in:
Shaun Amott 2006-11-21 19:48:18 +00:00
parent 3ccdbf117f
commit c0acac7fdd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177746
2 changed files with 12 additions and 0 deletions

View file

@ -35,6 +35,8 @@ OPTIONS= PNG "build with png support" off \
.if !defined(WITHOUT_THREADS) .if !defined(WITHOUT_THREADS)
CONFIGURE_ARGS+= --enable-threads CONFIGURE_ARGS+= --enable-threads
CFLAGS+= ${PTHREAD_LIBS}
CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
.endif .endif
.if defined(WITH_USB) .if defined(WITH_USB)

View file

@ -0,0 +1,10 @@
--- src/pilot-clip.c.orig Sun Aug 6 16:55:58 2006
+++ src/pilot-clip.c Tue Nov 21 19:24:15 2006
@@ -18,6 +18,7 @@
*/
#include <stdio.h>
+#include <sys/types.h>
#include <netinet/in.h>
#include "pi-source.h"