summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Eichin <eichin@mit.edu>1994-08-09 19:00:28 +0000
committerMark Eichin <eichin@mit.edu>1994-08-09 19:00:28 +0000
commit92d52576b5df177cb233fcdbbb2ba3240d2f62bc (patch)
tree047d6cab6f08624fbedffb7d2c64299ee238cbaf
parente0bac7ab12894d4fb5203d1a5c178a0be08ff343 (diff)
downloadkrb5-92d52576b5df177cb233fcdbbb2ba3240d2f62bc.tar.gz
krb5-92d52576b5df177cb233fcdbbb2ba3240d2f62bc.tar.xz
krb5-92d52576b5df177cb233fcdbbb2ba3240d2f62bc.zip
string/strings fixes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4093 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/appl/popper/configure.in1
-rw-r--r--src/appl/popper/pop_dropcopy.c6
-rw-r--r--src/appl/popper/pop_dropinfo.c6
-rw-r--r--src/appl/popper/pop_msg.c6
4 files changed, 16 insertions, 3 deletions
diff --git a/src/appl/popper/configure.in b/src/appl/popper/configure.in
index f9eab3f27..fb5862983 100644
--- a/src/appl/popper/configure.in
+++ b/src/appl/popper/configure.in
@@ -15,6 +15,7 @@ AC_COMPILE_CHECK([POSIX file locking -- structs and flags],
[struct flock f; 1+F_SETLK;],
AC_DEFINE(POSIX_FILE_LOCKS)))
+AC_HAVE_HEADERS(strings.h)
AC_HEADER_CHECK(unistd.h,AC_DEFINE(HAS_UNISTD_H))
AC_HEADER_CHECK(paths.h,AC_DEFINE(HAS_PATHS_H))
diff --git a/src/appl/popper/pop_dropcopy.c b/src/appl/popper/pop_dropcopy.c
index 0acb16d67..6c93f77f2 100644
--- a/src/appl/popper/pop_dropcopy.c
+++ b/src/appl/popper/pop_dropcopy.c
@@ -7,7 +7,7 @@
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_dropcopy.c 2.6 4/3/91";
-#endif not lint
+#endif
#include <errno.h>
#include <stdio.h>
@@ -18,7 +18,11 @@ static char SccsId[] = "@(#)pop_dropcopy.c 2.6 4/3/91";
#include <fcntl.h>
#endif
#include <sys/types.h>
+#ifdef HAVE_STRINGS_H
#include <strings.h>
+#else
+#include <string.h>
+#endif
#include <sys/stat.h>
#include <sys/file.h>
#include <pwd.h>
diff --git a/src/appl/popper/pop_dropinfo.c b/src/appl/popper/pop_dropinfo.c
index 827f282e6..c46da13e4 100644
--- a/src/appl/popper/pop_dropinfo.c
+++ b/src/appl/popper/pop_dropinfo.c
@@ -7,12 +7,16 @@
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_dropinfo.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
+#ifdef HAVE_STRINGS_H
#include <strings.h>
+#else
+#include <string.h>
+#endif
#include <sys/stat.h>
#include <sys/file.h>
#include "popper.h"
diff --git a/src/appl/popper/pop_msg.c b/src/appl/popper/pop_msg.c
index 839cb39bf..14ff52f10 100644
--- a/src/appl/popper/pop_msg.c
+++ b/src/appl/popper/pop_msg.c
@@ -7,11 +7,15 @@
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_msg.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
+#ifdef HAVE_STRINGS_H
#include <strings.h>
+#else
+#include <string.h>
+#endif
#include <varargs.h>
#include "popper.h"