]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/parse_mtab.c
AC_HEADER_STDC autoconf change
[netatalk.git] / etc / afpd / parse_mtab.c
index 462107fe1ef3a498462f7c589753550bbda63372..3375c64f95db814b2a62a115085dfd74fc0b85c6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: parse_mtab.c,v 1.3 2001-06-19 18:04:39 rufustfirefly Exp $
+ * $Id: parse_mtab.c,v 1.4 2001-09-06 20:00:59 rufustfirefly Exp $
  *
  * afpd_mtab_parse & support.  -- rgr, 9-Apr-01.
  */
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
+
+/* STDC check */
+#if STDC_HEADERS
 #include <string.h>
+#else /* STDC_HEADERS */
+#ifndef HAVE_STRCHR
+#define strchr index
+#define strrchr index
+#endif /* HAVE_STRCHR */
+char *strchr (), *strrchr ();
+#ifndef HAVE_MEMCPY
+#define memcpy(d,s,n) bcopy ((s), (d), (n))
+#define memmove(d,s,n) bcopy ((s), (d), (n))
+#endif /* ! HAVE_MEMCPY */
+#endif /* STDC_HEADERS */
+
 #include <sys/stat.h>
 
 #include "directory.h"