X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=bin%2Fafppasswd%2Fafppasswd.c;h=f5d7110aa18e3338404f18cc2b6edb297a70d119;hb=4b777c7af436135108b2391c6d5a230a5d69e480;hp=980ca4a26087d0d562cc1b83f41604de65c59293;hpb=f4c70982f27d940f0428140a18ac9dbf9cc92ed5;p=netatalk.git diff --git a/bin/afppasswd/afppasswd.c b/bin/afppasswd/afppasswd.c index 980ca4a2..f5d7110a 100644 --- a/bin/afppasswd/afppasswd.c +++ b/bin/afppasswd/afppasswd.c @@ -1,5 +1,5 @@ /* - * $Id: afppasswd.c,v 1.7 2001-07-31 19:49:02 srittau Exp $ + * $Id: afppasswd.c,v 1.8 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright 1999 (c) Adrian Sun (asun@u.washington.edu) * All Rights Reserved. See COPYRIGHT. @@ -24,13 +24,27 @@ #include "config.h" #endif /* HAVE_CONFIG_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 #include #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ #include -#include #include #include #include