X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fnfsquota.c;h=213eaf54e85506feafdcdba39c17730ecbee44c3;hb=4b777c7af436135108b2391c6d5a230a5d69e480;hp=170aaa40e410786a5971ef0aec46b14140f1eb46;hpb=f4c70982f27d940f0428140a18ac9dbf9cc92ed5;p=netatalk.git diff --git a/etc/afpd/nfsquota.c b/etc/afpd/nfsquota.c index 170aaa40..213eaf54 100644 --- a/etc/afpd/nfsquota.c +++ b/etc/afpd/nfsquota.c @@ -1,5 +1,5 @@ /* - * $Id: nfsquota.c,v 1.3 2001-06-20 18:33:04 rufustfirefly Exp $ + * $Id: nfsquota.c,v 1.4 2001-09-06 20:00:59 rufustfirefly Exp $ * * parts of this are lifted from the bsd quota program and are * therefore under the following copyright: @@ -19,7 +19,22 @@ #endif /* HAVE_CONFIG_H */ #include + +/* STDC check */ +#if STDC_HEADERS #include +#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 #include #include /* for DEV_BSIZE */