X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fpapd%2Fmain.c;h=b5e4c35786252a492ee532813f7b8acdd190a424;hb=4b777c7af436135108b2391c6d5a230a5d69e480;hp=ffa60e36090ebfbaac839b79759acddec658c36e;hpb=f4c70982f27d940f0428140a18ac9dbf9cc92ed5;p=netatalk.git diff --git a/etc/papd/main.c b/etc/papd/main.c index ffa60e36..b5e4c357 100644 --- a/etc/papd/main.c +++ b/etc/papd/main.c @@ -1,5 +1,5 @@ /* - * $Id: main.c,v 1.10 2001-09-06 19:04:40 rufustfirefly Exp $ + * $Id: main.c,v 1.11 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1995 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -33,7 +33,22 @@ #endif /* ! WIFEXITED */ #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