From: rufustfirefly Date: Thu, 6 Sep 2001 20:00:59 +0000 (+0000) Subject: AC_HEADER_STDC autoconf change X-Git-Tag: netatalk-1-5-rc1~225 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b777c7af436135108b2391c6d5a230a5d69e480;hp=f4c70982f27d940f0428140a18ac9dbf9cc92ed5;p=netatalk.git AC_HEADER_STDC autoconf change --- 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 diff --git a/etc/afpd/afp_config.c b/etc/afpd/afp_config.c index 27e4b0df..eda0d7df 100644 --- a/etc/afpd/afp_config.c +++ b/etc/afpd/afp_config.c @@ -1,5 +1,5 @@ /* - * $Id: afp_config.c,v 1.3 2001-06-20 18:33:04 rufustfirefly Exp $ + * $Id: afp_config.c,v 1.4 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu) * All Rights Reserved. See COPYRIGHT. @@ -11,7 +11,22 @@ #include #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 */ + #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ diff --git a/etc/afpd/afp_options.c b/etc/afpd/afp_options.c index e7a8f188..93903565 100644 --- a/etc/afpd/afp_options.c +++ b/etc/afpd/afp_options.c @@ -1,5 +1,5 @@ /* - * $Id: afp_options.c,v 1.8 2001-07-31 19:50:14 srittau Exp $ + * $Id: afp_options.c,v 1.9 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu) * Copyright (c) 1990,1993 Regents of The University of Michigan. @@ -14,7 +14,22 @@ #include #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 #ifdef HAVE_UNISTD_H #include diff --git a/etc/afpd/directory.c b/etc/afpd/directory.c index 9db18bb1..9823e214 100644 --- a/etc/afpd/directory.c +++ b/etc/afpd/directory.c @@ -1,5 +1,5 @@ /* - * $Id: directory.c,v 1.17 2001-09-04 13:52:45 rufustfirefly Exp $ + * $Id: directory.c,v 1.18 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -34,7 +34,21 @@ #endif /* HAVE_FCNTL_H */ #include #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 "directory.h" #include "desktop.h" 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 diff --git a/etc/afpd/filedir.c b/etc/afpd/filedir.c index 7573af5e..aa21ac07 100644 --- a/etc/afpd/filedir.c +++ b/etc/afpd/filedir.c @@ -1,5 +1,5 @@ /* - * $Id: filedir.c,v 1.13 2001-09-04 13:52:45 rufustfirefly Exp $ + * $Id: filedir.c,v 1.14 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -20,14 +20,29 @@ #include #ifdef CNID_DB #include -#endif +#endif /* CNID_DB */ #include #include #ifdef HAVE_FCNTL_H #include #endif /* HAVE_FCNTL_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 */ + #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ diff --git a/etc/afpd/gettok.c b/etc/afpd/gettok.c index 7d3e5b48..2dd55a0d 100644 --- a/etc/afpd/gettok.c +++ b/etc/afpd/gettok.c @@ -1,5 +1,5 @@ /* - * $Id: gettok.c,v 1.3 2001-06-20 18:33:04 rufustfirefly Exp $ + * $Id: gettok.c,v 1.4 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1994 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -10,7 +10,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 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 */ diff --git a/etc/afpd/parse_mtab.c b/etc/afpd/parse_mtab.c index 462107fe..3375c64f 100644 --- a/etc/afpd/parse_mtab.c +++ b/etc/afpd/parse_mtab.c @@ -1,5 +1,5 @@ /* - * $Id: parse_mtab.c,v 1.3 2001-06-19 18:04:39 rufustfirefly Exp $ + * $Id: parse_mtab.c,v 1.4 2001-09-06 20:00:59 rufustfirefly Exp $ * * afpd_mtab_parse & support. -- rgr, 9-Apr-01. */ @@ -11,7 +11,22 @@ #include #include #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 "directory.h" diff --git a/etc/afpd/passwd.c b/etc/afpd/passwd.c index 2ff4516b..951d8add 100644 --- a/etc/afpd/passwd.c +++ b/etc/afpd/passwd.c @@ -1,5 +1,5 @@ /* - * $Id: passwd.c,v 1.3 2001-06-20 18:33:04 rufustfirefly Exp $ + * $Id: passwd.c,v 1.4 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1991 Regents of The University of Michigan. * All Rights Reserved. @@ -29,7 +29,22 @@ #include #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 diff --git a/etc/afpd/quota.c b/etc/afpd/quota.c index 2398c6c6..e8f2fe9d 100644 --- a/etc/afpd/quota.c +++ b/etc/afpd/quota.c @@ -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. @@ -11,7 +11,22 @@ #include #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 diff --git a/etc/afpd/uam.c b/etc/afpd/uam.c index 627dab33..e363905f 100644 --- a/etc/afpd/uam.c +++ b/etc/afpd/uam.c @@ -1,5 +1,5 @@ /* - * $Id: uam.c,v 1.12 2001-08-03 22:09:57 srittau Exp $ + * $Id: uam.c,v 1.13 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu) * All Rights Reserved. See COPYRIGHT. @@ -11,7 +11,22 @@ #include #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 */ + #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ diff --git a/etc/afpd/unix.c b/etc/afpd/unix.c index 60b52d29..1f348b80 100644 --- a/etc/afpd/unix.c +++ b/etc/afpd/unix.c @@ -1,5 +1,5 @@ /* - * $Id: unix.c,v 1.20 2001-08-15 01:37:34 srittau Exp $ + * $Id: unix.c,v 1.21 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -21,8 +21,25 @@ #include #include #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 */ + +#ifdef HAVE_FCNTL_H #include +#endif /* HAVE_FCNTL_H */ #include "auth.h" #include "directory.h" #include "volume.h" diff --git a/etc/afpd/volume.c b/etc/afpd/volume.c index 8f37e390..3f9a0a37 100644 --- a/etc/afpd/volume.c +++ b/etc/afpd/volume.c @@ -1,5 +1,5 @@ /* - * $Id: volume.c,v 1.12 2001-09-04 13:52:45 rufustfirefly Exp $ + * $Id: volume.c,v 1.13 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -33,7 +33,22 @@ #include #include #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 diff --git a/etc/atalkd/config.c b/etc/atalkd/config.c index da2edeee..aa706e42 100644 --- a/etc/atalkd/config.c +++ b/etc/atalkd/config.c @@ -1,5 +1,5 @@ /* - * $Id: config.c,v 1.5 2001-08-15 01:39:39 srittau Exp $ + * $Id: config.c,v 1.6 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -26,7 +26,22 @@ #include #include #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 #ifdef HAVE_FCNTL_H #include 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 diff --git a/etc/papd/uam.c b/etc/papd/uam.c index d164e0ef..4ae743e3 100644 --- a/etc/papd/uam.c +++ b/etc/papd/uam.c @@ -1,5 +1,5 @@ /* - * $Id: uam.c,v 1.5 2001-06-25 20:13:45 rufustfirefly Exp $ + * $Id: uam.c,v 1.6 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu) * All Rights Reserved. See COPYRIGHT. @@ -11,7 +11,22 @@ #include #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 */ + #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ diff --git a/etc/uams/uams_guest.c b/etc/uams/uams_guest.c index f6f53ea3..7d667062 100644 --- a/etc/uams/uams_guest.c +++ b/etc/uams/uams_guest.c @@ -1,5 +1,5 @@ /* - * $Id: uams_guest.c,v 1.6 2001-06-27 18:22:20 uhees Exp $ + * $Id: uams_guest.c,v 1.7 2001-09-06 20:00:59 rufustfirefly Exp $ * * (c) 2001 (see COPYING) */ @@ -10,7 +10,22 @@ #include #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 diff --git a/etc/uams/uams_krb4/uams_krb4.c b/etc/uams/uams_krb4/uams_krb4.c index e1e81841..7d2bc089 100644 --- a/etc/uams/uams_krb4/uams_krb4.c +++ b/etc/uams/uams_krb4/uams_krb4.c @@ -1,13 +1,13 @@ /* - * $Id: uams_krb4.c,v 1.4 2001-06-25 20:13:45 rufustfirefly Exp $ + * $Id: uams_krb4.c,v 1.5 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ -#if defined(HAVE_CONFIG_H) +#ifdef HAVE_CONFIG_H #include "config.h" -#endif +#endif /* HAVE_CONFIG_H */ #if defined( KRB ) || defined( UAM_AFSKRB ) #ifdef HAVE_UNISTD_H @@ -21,7 +21,22 @@ #include #include #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 diff --git a/etc/uams/uams_pam.c b/etc/uams/uams_pam.c index 88545e53..8c96043b 100644 --- a/etc/uams/uams_pam.c +++ b/etc/uams/uams_pam.c @@ -1,5 +1,5 @@ /* - * $Id: uams_pam.c,v 1.7 2001-06-25 20:13:45 rufustfirefly Exp $ + * $Id: uams_pam.c,v 1.8 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) @@ -17,7 +17,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 #include diff --git a/etc/uams/uams_passwd.c b/etc/uams/uams_passwd.c index 3925b8b6..365707ef 100644 --- a/etc/uams/uams_passwd.c +++ b/etc/uams/uams_passwd.c @@ -1,5 +1,5 @@ /* - * $Id: uams_passwd.c,v 1.12 2001-06-25 20:13:45 rufustfirefly Exp $ + * $Id: uams_passwd.c,v 1.13 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) @@ -12,7 +12,22 @@ #include #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 */ + #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ diff --git a/etc/uams/uams_randnum.c b/etc/uams/uams_randnum.c index 0e94b153..440d901d 100644 --- a/etc/uams/uams_randnum.c +++ b/etc/uams/uams_randnum.c @@ -1,5 +1,5 @@ /* - * $Id: uams_randnum.c,v 1.5 2001-06-25 20:13:45 rufustfirefly Exp $ + * $Id: uams_randnum.c,v 1.6 2001-09-06 20:00:59 rufustfirefly Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) @@ -12,11 +12,28 @@ #include #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 */ + #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ +#ifdef HAVE_FCNTL_H #include +#endif /* HAVE_FCNTL_H */ #include #include #include