]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/quota.c
AC_HEADER_STDC autoconf change
[netatalk.git] / etc / afpd / quota.c
index 2398c6c63c40e3d84e4b303a04d47a82444718fe..e8f2fe9d3519922d7a6c5e9ac958c53c7480449a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: quota.c,v 1.10 2001-07-31 19:50:14 srittau Exp $
+ * $Id: quota.c,v 1.11 2001-09-06 20:00:59 rufustfirefly Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
 
 #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 <sys/stat.h>
 #include <sys/time.h>
 #include <sys/param.h>