I really think the -DINET6 is wrong. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@xxxxxxxxx> --- src/Makefile.am | 4 ++-- src/auth_time.c | 3 +++ src/getrpcent.c | 8 ++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 26ccbdf..38d0c3d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,8 +7,8 @@ noinst_HEADERS = rpc_com.h debug.h -AM_CPPFLAGS = -I$(top_srcdir)/tirpc -DPORTMAP -DINET6 \ - -D_GNU_SOURCE -Wall -pipe +AM_CPPFLAGS = -I$(top_srcdir)/tirpc -include config.h -DPORTMAP -DINET6 \ + -D_GNU_SOURCE -Wall -pipe lib_LTLIBRARIES = libtirpc.la diff --git a/src/auth_time.c b/src/auth_time.c index 13717ff..10e58eb 100644 --- a/src/auth_time.c +++ b/src/auth_time.c @@ -25,6 +25,9 @@ * needed to deal with TCP connections. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <syslog.h> #include <string.h> diff --git a/src/getrpcent.c b/src/getrpcent.c index fbb2da4..c374673 100644 --- a/src/getrpcent.c +++ b/src/getrpcent.c @@ -30,6 +30,10 @@ * Copyright (c) 1984 by Sun Microsystems, Inc. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <sys/types.h> #include <netinet/in.h> @@ -50,10 +54,6 @@ #include <libc_private.h> #endif -#if HAVE_CONFIG_H -#include "config.h" -#endif - /* * Internet version. */ -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html