diff options
author | dinoex <dinoex@FreeBSD.org> | 2002-12-10 05:10:30 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2002-12-10 05:10:30 +0800 |
commit | 7ee3d135d97370da0c2a1d7195da2bfa9eca6e04 (patch) | |
tree | e4e457e6351f092fcf73605131a7df64c2261722 /news | |
parent | 2100de90578414406ca69c09580fba550350e172 (diff) | |
download | freebsd-ports-graphics-7ee3d135d97370da0c2a1d7195da2bfa9eca6e04.tar.gz freebsd-ports-graphics-7ee3d135d97370da0c2a1d7195da2bfa9eca6e04.tar.zst freebsd-ports-graphics-7ee3d135d97370da0c2a1d7195da2bfa9eca6e04.zip |
Fix a build problem with ANSI_SOURCE and CFLAGS
Diffstat (limited to 'news')
-rw-r--r-- | news/nntp/Makefile | 1 | ||||
-rw-r--r-- | news/nntp/files/patch-Makefile | 2 | ||||
-rw-r--r-- | news/nntp/files/patch-xfer-nntpxfer.c | 18 |
3 files changed, 5 insertions, 16 deletions
diff --git a/news/nntp/Makefile b/news/nntp/Makefile index c6e7403bf38..3fedd0efc9e 100644 --- a/news/nntp/Makefile +++ b/news/nntp/Makefile @@ -25,7 +25,6 @@ MAN1= nntpxmit.1 MAN8= nntpd.8c acttimes.8c PLIST_SUB+= NEWSBIN=${NEWSBIN:S=${PREFIX}/==} PLIST_SUB+= NEWSCTL=${NEWSCTL:S=${PREFIX}/==} -CFLAGS+= -I${LOCALBASE}/include MODIFY= conf.h Makefile DOCSFILES1= AUTHORIZE CHANGES README README-conf.h SYSLOG doc/rfc977 diff --git a/news/nntp/files/patch-Makefile b/news/nntp/files/patch-Makefile index 2f4ccb5088b..3ff1ab4cc3d 100644 --- a/news/nntp/files/patch-Makefile +++ b/news/nntp/files/patch-Makefile @@ -5,7 +5,7 @@ # MAKE=make # set CFLAGS to be -Ipath/to/special/includes if needed -CFLAGS= -O -+#CFLAGS= -O ++CFLAGS+= -I${LOCALBASE}/include #Uncomment the following for Solaris (and similiar SVR4 systems) #NETLIBS = -lsocket -lnsl #Uncomment the following if the previous one does not work diff --git a/news/nntp/files/patch-xfer-nntpxfer.c b/news/nntp/files/patch-xfer-nntpxfer.c index 0578f686076..4eba4a79589 100644 --- a/news/nntp/files/patch-xfer-nntpxfer.c +++ b/news/nntp/files/patch-xfer-nntpxfer.c @@ -1,16 +1,6 @@ ---- xfer/nntpxfer.c.orig Thu Dec 5 10:04:30 2002 -+++ xfer/nntpxfer.c Thu Dec 5 10:07:22 2002 -@@ -60,6 +60,9 @@ - #include <sys/time.h> - #endif - -+#ifdef BSD_44 -+#define _ANSI_SOURCE -+#endif - #include <stdio.h> - #include <errno.h> - #include <ctype.h> -@@ -107,7 +110,11 @@ +--- xfer/nntpxfer.c.orig Fri Dec 6 07:51:46 2002 ++++ xfer/nntpxfer.c Fri Dec 6 07:58:39 2002 +@@ -107,7 +107,11 @@ char *rindex(); u_long inet_addr(); @@ -22,7 +12,7 @@ char *artlist[MAX_ARTICLES]; int server; /* stream socket to the nntp server */ FILE * rd_fp, * wr_fp; -@@ -649,8 +656,10 @@ +@@ -649,8 +653,10 @@ errmsg(code) int code; { |