---
 src/appl/libpty/sane_hostname.c             |    4 ++++
 src/include/k5-int.h                        |    3 +++
 src/lib/gssapi/spnego/spnego_mech.c         |    4 ++++
 src/plugins/kdb/db2/libdb2/include/db-int.h |    4 ++++
 4 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/appl/libpty/sane_hostname.c b/src/appl/libpty/sane_hostname.c
index 8ef6de8..102f2a2 100644
--- a/src/appl/libpty/sane_hostname.c
+++ b/src/appl/libpty/sane_hostname.c
@@ -29,6 +29,10 @@
 #include "socket-utils.h"
 #include "fake-addrinfo.h"
 
+#ifndef MAXHOSTNAMELEN
+# define MAXHOSTNAMELEN 256
+#endif
+
 static void
 downcase (char *s)
 {
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index eb4e2fa..a3189ec 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -553,6 +553,9 @@ extern char *strdup (const char *);
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>                 /* MAXPATHLEN */
 #endif
+#ifndef MAXPATHLEN
+# define MAXPATHLEN 4096
+#endif
 
 #ifdef HAVE_SYS_FILE_H
 #include <sys/file.h>                  /* prototypes for file-related
diff --git a/src/lib/gssapi/spnego/spnego_mech.c 
b/src/lib/gssapi/spnego/spnego_mech.c
index 73a4531..3e9e5c9 100644
--- a/src/lib/gssapi/spnego/spnego_mech.c
+++ b/src/lib/gssapi/spnego/spnego_mech.c
@@ -74,6 +74,10 @@
 #include       <gssapi_err_generic.h>
 
 
+#ifndef MAXHOSTNAMELEN
+# define MAXHOSTNAMELEN 256
+#endif
+
 #undef g_token_size
 #undef g_verify_token_header
 #undef g_make_token_header
diff --git a/src/plugins/kdb/db2/libdb2/include/db-int.h 
b/src/plugins/kdb/db2/libdb2/include/db-int.h
index 8329ee3..6efa363 100644
--- a/src/plugins/kdb/db2/libdb2/include/db-int.h
+++ b/src/plugins/kdb/db2/libdb2/include/db-int.h
@@ -280,4 +280,8 @@ void         __dbpanic __P((DB *dbp));
 #ifndef O_BINARY
 #define O_BINARY       0               /* Needed for Win32 compiles */
 #endif
+
+#ifndef MAXPATHLEN
+# define MAXPATHLEN 4096
+#endif
 #endif /* _DB_INT_H_ */
-- 
1.5.2.4




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to