fix-afsmonitor-patch-for-string-h-existance-check-20010602
authorNathan Neulinger <nneul@umr.edu>
Sun, 3 Jun 2001 17:52:05 +0000 (17:52 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 3 Jun 2001 17:52:05 +0000 (17:52 +0000)
as not all platforms may have string.h

src/afsmonitor/Makefile
src/afsmonitor/afsmon-win.c

index c535dc1..a02e155 100644 (file)
@@ -14,6 +14,7 @@ COMPONENT=afsmonitor
 include ../config/Makefile.${SYS_NAME}
 
 CFLAGS=-g -I. \
+       -I${TOP_SRCDIR}/config \
        -I${SRCDIR}include \
        -I${SRCDIR}include/afs \
        -I${SRCDIR} ${XCFLAGS}
index cd1f997..87c989c 100644 (file)
 #include <math.h>
 #include <cmd.h>
 #include <afs/param.h>
+#include <afsconfig.h>
+#ifdef HAVE_STRING_H
 #include <string.h>
+#endif
 #undef IN
 #include <time.h>