X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Ffile.c;h=e6a4d83314328a2e420208375191f4ce7a28f86f;hb=4b777c7af436135108b2391c6d5a230a5d69e480;hp=a2afbab4c90fa0448d0ff60138b053e6501bbba0;hpb=f4c70982f27d940f0428140a18ac9dbf9cc92ed5;p=netatalk.git diff --git a/etc/afpd/file.c b/etc/afpd/file.c index a2afbab4..e6a4d833 100644 --- a/etc/afpd/file.c +++ b/etc/afpd/file.c @@ -1,5 +1,5 @@ /* - * $Id: file.c,v 1.28 2001-09-04 13:52:45 rufustfirefly Exp $ + * $Id: file.c,v 1.29 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -14,7 +14,22 @@ #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ + +/* 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 #ifdef HAVE_FCNTL_H #include