summaryrefslogtreecommitdiffstats
path: root/src/lib/rpc
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-04-01 03:08:17 +0000
committerKen Raeburn <raeburn@mit.edu>2006-04-01 03:08:17 +0000
commit005af08753fd9c090f285cbd1bb7599e47a15cae (patch)
treec092c535fffc177b78900af0aefe2457b77268f6 /src/lib/rpc
parent6164dc36d77452a02787fbded0c50ebb746048d5 (diff)
downloadkrb5-005af08753fd9c090f285cbd1bb7599e47a15cae.tar.gz
krb5-005af08753fd9c090f285cbd1bb7599e47a15cae.tar.xz
krb5-005af08753fd9c090f285cbd1bb7599e47a15cae.zip
Include autoconf.h (or include it earlier) in a bunch of files that are
currently depending on command-line macro settings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17825 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/rpc')
-rw-r--r--src/lib/rpc/ChangeLog7
-rw-r--r--src/lib/rpc/auth_unix.c4
-rw-r--r--src/lib/rpc/clnt_generic.c1
-rw-r--r--src/lib/rpc/clnt_perror.c2
-rw-r--r--src/lib/rpc/clnt_simple.c1
-rw-r--r--src/lib/rpc/getrpcport.c1
-rw-r--r--src/lib/rpc/svc.c1
-rw-r--r--src/lib/rpc/svc_tcp.c1
-rw-r--r--src/lib/rpc/svc_udp.c1
-rw-r--r--src/lib/rpc/unit-test/ChangeLog4
-rw-r--r--src/lib/rpc/unit-test/client.c1
-rw-r--r--src/lib/rpc/unit-test/server.c1
12 files changed, 22 insertions, 3 deletions
diff --git a/src/lib/rpc/ChangeLog b/src/lib/rpc/ChangeLog
index 0707c279a..60fbc9784 100644
--- a/src/lib/rpc/ChangeLog
+++ b/src/lib/rpc/ChangeLog
@@ -1,3 +1,10 @@
+2006-03-31 Ken Raeburn <raeburn@mit.edu>
+
+ * clnt_perror.c, svc.c, svc_udp.c, clnt_simple.c, svc_tcp.c,
+ auth_unix.c, clnt_generic.c, getrpcport.c: Include autoconf.h.
+
+ * auth_unix.c (GETGROUPS_T): Don't define.
+
2006-03-30 Ken Raeburn <raeburn@mit.edu>
* dyn.c (DynDelete, DynInsert, DynPut): Delete bcopy branches.
diff --git a/src/lib/rpc/auth_unix.c b/src/lib/rpc/auth_unix.c
index 4af3bc4c7..eaa842732 100644
--- a/src/lib/rpc/auth_unix.c
+++ b/src/lib/rpc/auth_unix.c
@@ -52,9 +52,7 @@ static char sccsid[] = "@(#)auth_unix.c 1.19 87/08/11 Copyr 1984 Sun Micro";
#include <gssrpc/auth.h>
#include <gssrpc/auth_unix.h>
-#ifndef GETGROUPS_T
-#define GETGROUPS_T int
-#endif
+#include "autoconf.h"
/*
* Unix authenticator operations vector
diff --git a/src/lib/rpc/clnt_generic.c b/src/lib/rpc/clnt_generic.c
index 225ab9432..07490eeea 100644
--- a/src/lib/rpc/clnt_generic.c
+++ b/src/lib/rpc/clnt_generic.c
@@ -38,6 +38,7 @@ static char sccsid[] = "@(#)clnt_generic.c 1.4 87/08/11 (C) 1987 SMI";
#include <sys/socket.h>
#include <sys/errno.h>
#include <netdb.h>
+#include "autoconf.h"
/*
* Generic client creation: takes (hostname, program-number, protocol) and
diff --git a/src/lib/rpc/clnt_perror.c b/src/lib/rpc/clnt_perror.c
index 4f159c3b0..85935a8b0 100644
--- a/src/lib/rpc/clnt_perror.c
+++ b/src/lib/rpc/clnt_perror.c
@@ -45,6 +45,8 @@ static char sccsid[] = "@(#)clnt_perror.c 1.15 87/10/07 Copyr 1984 Sun Micro";
#include <gssrpc/auth.h>
#include <gssrpc/clnt.h>
+#include "autoconf.h"
+
#ifndef HAVE_STRERROR
#ifdef NEED_SYS_ERRLIST
extern char *sys_errlist[];
diff --git a/src/lib/rpc/clnt_simple.c b/src/lib/rpc/clnt_simple.c
index 317fbe5dd..d2434a13c 100644
--- a/src/lib/rpc/clnt_simple.c
+++ b/src/lib/rpc/clnt_simple.c
@@ -45,6 +45,7 @@ static char sccsid[] = "@(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro";
#include <sys/socket.h>
#include <netdb.h>
#include <string.h>
+#include "autoconf.h"
static struct callrpc_private {
CLIENT *client;
diff --git a/src/lib/rpc/getrpcport.c b/src/lib/rpc/getrpcport.c
index 4890d582c..8688df2ea 100644
--- a/src/lib/rpc/getrpcport.c
+++ b/src/lib/rpc/getrpcport.c
@@ -41,6 +41,7 @@ static char sccsid[] = "@(#)getrpcport.c 1.3 87/08/11 SMI";
#include <gssrpc/pmap_clnt.h>
#include <netdb.h>
#include <sys/socket.h>
+#include "autoconf.h"
int
gssrpc_getrpcport(
diff --git a/src/lib/rpc/svc.c b/src/lib/rpc/svc.c
index 7d2be1c1a..9fa7b33fe 100644
--- a/src/lib/rpc/svc.c
+++ b/src/lib/rpc/svc.c
@@ -41,6 +41,7 @@ static char sccsid[] = "@(#)svc.c 1.41 87/10/13 Copyr 1984 Sun Micro";
* Copyright (C) 1984, Sun Microsystems, Inc.
*/
+#include "autoconf.h"
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
diff --git a/src/lib/rpc/svc_tcp.c b/src/lib/rpc/svc_tcp.c
index ce9bb35af..d49cf3672 100644
--- a/src/lib/rpc/svc_tcp.c
+++ b/src/lib/rpc/svc_tcp.c
@@ -48,6 +48,7 @@ static char sccsid[] = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";
#include <sys/socket.h>
#include <errno.h>
#include <stdlib.h>
+#include "autoconf.h"
/*extern bool_t abort();
extern errno;
*/
diff --git a/src/lib/rpc/svc_udp.c b/src/lib/rpc/svc_udp.c
index 16eb5f01a..49c555fe2 100644
--- a/src/lib/rpc/svc_udp.c
+++ b/src/lib/rpc/svc_udp.c
@@ -45,6 +45,7 @@ static char sccsid[] = "@(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";
#include <gssrpc/rpc.h>
#include <sys/socket.h>
#include <errno.h>
+#include "autoconf.h"
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
diff --git a/src/lib/rpc/unit-test/ChangeLog b/src/lib/rpc/unit-test/ChangeLog
index 5da06fe52..a3da36e1a 100644
--- a/src/lib/rpc/unit-test/ChangeLog
+++ b/src/lib/rpc/unit-test/ChangeLog
@@ -1,3 +1,7 @@
+2006-03-31 Ken Raeburn <raeburn@mit.edu>
+
+ * client.c, server.c: Include autoconf.h.
+
2006-03-11 Ken Raeburn <raeburn@mit.edu>
* server.c (krb5_kt_default_name): Deleted unused function.
diff --git a/src/lib/rpc/unit-test/client.c b/src/lib/rpc/unit-test/client.c
index ffe6739cb..796a5aaa1 100644
--- a/src/lib/rpc/unit-test/client.c
+++ b/src/lib/rpc/unit-test/client.c
@@ -11,6 +11,7 @@ static char *rcsid = "$Header$";
#include <stdio.h>
#include <string.h>
+#include "autoconf.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/src/lib/rpc/unit-test/server.c b/src/lib/rpc/unit-test/server.c
index e831a0d34..d4f0d8c6a 100644
--- a/src/lib/rpc/unit-test/server.c
+++ b/src/lib/rpc/unit-test/server.c
@@ -11,6 +11,7 @@ static char *rcsid = "$Header$";
#include <stdio.h>
#include <stdlib.h>
+#include "autoconf.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif