]> granicus.if.org Git - libtirpc/commitdiff
Make sure to include config.h
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 29 Apr 2015 14:57:06 +0000 (10:57 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 29 Apr 2015 15:43:39 +0000 (11:43 -0400)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
src/Makefile.am
src/auth_time.c
src/getrpcent.c

index 8e37b406ec99518178f7a668aed85e5ddcefa5b8..5f01ea5b7201a00e79b445bb319b1ec3294c6b1b 100644 (file)
@@ -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
 
index 13717ff6f19335e2d8124583c69dd9226945a16a..10e58eb1af111c4c64807389c9d57687760a9c06 100644 (file)
@@ -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>
index fbb2da4f6e9882664e80158367ebabf3dacd5298..c3746735f3771d31d67cbf4eb7a4e93e664f7120 100644 (file)
  * Copyright (c) 1984 by Sun Microsystems, Inc.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <sys/types.h>
 
 #include <netinet/in.h>
 #include <libc_private.h>
 #endif
 
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
 /*
  * Internet version.
  */