From 33e8a62b26621ae0dc48ee96cfcefbf5e70af7cd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 22 May 2010 19:36:07 +0100 Subject: [PATCH 1/1] generic build fixes --- .gitignore | 1 + ipif/forwarder.h | 4 ++-- settings.make | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3c1c4b2..925d109 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *~ +*.new dist_tmp userv-utils-*.tar.gz diff --git a/ipif/forwarder.h b/ipif/forwarder.h index fa048b3..599eb41 100644 --- a/ipif/forwarder.h +++ b/ipif/forwarder.h @@ -28,8 +28,6 @@ #include #include -#include "automech.h" - struct buffer { unsigned char *base; unsigned char *start; @@ -52,6 +50,8 @@ struct mechanism { mdec_functype *decode; }; +#include "automech.h" + extern const struct mechanism *const mechanismlists[]; /* setup function may call getarg_xxx functions and then diff --git a/settings.make b/settings.make index c74afc2..2fa37e7 100644 --- a/settings.make +++ b/settings.make @@ -38,7 +38,7 @@ etcuserv= $(etcdir)/userv services= $(etcuserv)/services.d CFLAGS= -Wall -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes \ - -Wpointer-arith -D_GNU_SOURCE \ + -Wpointer-arith -D_GNU_SOURCE -Wno-pointer-sign \ $(OPTIMISE) $(DEBUG) $(SUBDIR_CFLAGS) LDFLAGS= $(SUBDIR_LDFLAGS) -- 2.30.2