]> arthur.barton.de Git - netatalk.git/blobdiff - etc/atalkd/config.c
AC_HEADER_STDC autoconf change
[netatalk.git] / etc / atalkd / config.c
index da2edeeecb1176fc04cd1334badd6fa4520b8b4d..aa706e42f858ce9b179a7a889141d1bc3faf5c76 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: config.c,v 1.5 2001-08-15 01:39:39 srittau Exp $
+ * $Id: config.c,v 1.6 2001-09-06 20:00:59 rufustfirefly Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
 #include <atalk/util.h>
 #include <stdio.h>
 #include <stdlib.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 <ctype.h>
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>