1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
diff -ruNp inn-1.7.2.orig/include/configdata.h inn-1.7.2/include/configdata.h
--- inn-1.7.2.orig/include/configdata.h 2006-08-19 10:34:34.000000000 +0200
+++ inn-1.7.2/include/configdata.h 2006-08-19 10:34:30.000000000 +0200
@@ -39,7 +39,7 @@ typedef char *CSTRING;
#else
#if defined(__GNUC__)
/* GCC */
-#define NORETURN volatile void
+#define NORETURN __attribute__((noreturn)) void
#else
/* Everyone else */
#define NORETURN void
diff -ruNp inn-1.7.2.orig/include/clibrary.h inn-1.7.2/include/clibrary.h
--- inn-1.7.2.orig/include/clibrary.h 2004-07-12 18:59:24.000000000 +0200
+++ inn-1.7.2/include/clibrary.h 2004-07-12 18:59:17.000000000 +0200
@@ -96,6 +96,7 @@ typedef struct _FDSET {
/* =()<#define FREEVAL @<FREEVAL>@>()= */
#define FREEVAL void
+#ifdef THIS_IS_2004_AND_I_HAVE_BROKEN_HEADERS
extern int optind;
extern char *optarg;
#if !defined(__STDC__)
@@ -149,3 +150,4 @@ extern void _exit();
#if defined(DO_HAVE_SETPROCTITLE)
extern void setproctitle();
#endif /* defined(DO_HAVE_SETPROCTITLE) */
+#endif /* THIS_IS_2004_AND_I_HAVE_BROKEN_HEADERS */
diff -ruNp inn-1.7.2.orig/innd/innd.h inn-1.7.2/innd/innd.h
--- inn-1.7.2.orig/innd/innd.h 2004-07-12 18:59:24.000000000 +0200
+++ inn-1.7.2/innd/innd.h 2004-07-12 18:58:32.000000000 +0200
@@ -31,6 +31,7 @@
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#include <fcntl.h>
#include "nntp.h"
#include "paths.h"
diff -ruNp inn-1.7.2.orig/nnrpd/nnrpd.h inn-1.7.2/nnrpd/nnrpd.h
--- inn-1.7.2.orig/nnrpd/nnrpd.h 2004-07-12 18:59:24.000000000 +0200
+++ inn-1.7.2/nnrpd/nnrpd.h 2004-07-12 18:59:17.000000000 +0200
@@ -16,6 +16,7 @@
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#if defined(DO_NEED_TIME)
#include <time.h>
#endif /* defined(DO_NEED_TIME) */
diff -ruNp inn-1.7.2.orig/config/subst.c inn-1.7.2/config/subst.c
--- inn-1.7.2.orig/config/subst.c 2006-08-19 10:42:28.000000000 +0200
+++ inn-1.7.2/config/subst.c 2006-08-19 10:42:14.000000000 +0200
@@ -3,6 +3,9 @@
** A C version of Henry Spencer's "subst" script.
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
#include <errno.h>
#include <signal.h>
@@ -33,9 +35,11 @@ static char *argv0;
extern char *optarg;
extern int optind;
+#ifdef THIS_IS_2004_AND_I_HAVE_BROKEN_HEADERS
extern void exit();
extern char *malloc();
extern char *strcpy();
+#endif
|