2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-04 00:05:11 +00:00

don't do malloc decl if gnuc

This commit is contained in:
Todd C. Miller
1994-08-08 17:05:22 +00:00
parent 880ca64066
commit aaefd1c3a1
5 changed files with 12 additions and 4 deletions

View File

@@ -56,7 +56,9 @@ static char rcsid[] = "$Id$";
#include "sudo.h" #include "sudo.h"
#ifndef STDC_HEADERS #ifndef STDC_HEADERS
#ifndef __GNUC__ /* gcc has its own malloc */
extern char *malloc __P((size_t)); extern char *malloc __P((size_t));
#endif /* __GNUC__ */
extern char *getenv __P((const char *)); extern char *getenv __P((const char *));
extern char *strcpy __P((char *, const char *)); extern char *strcpy __P((char *, const char *));
extern int fprintf __P((FILE *, const char *, ...)); extern int fprintf __P((FILE *, const char *, ...));

View File

@@ -55,10 +55,12 @@ static char rcsid[] = "$Id$";
#include <sys/param.h> #include <sys/param.h>
#ifndef STDC_HEADERS #ifndef STDC_HEADERS
#ifndef __GNUC__ /* gcc has its own malloc */
extern char *malloc __P((size_t));
#endif /* __GNUC__ */
extern char *strcpy __P((char *, const char *)); extern char *strcpy __P((char *, const char *));
extern int strlen __P((const char *)); extern int strlen __P((const char *));
extern char *getwd __P((char *)); extern char *getwd __P((char *));
extern char *malloc __P((size_t));
extern FILE *popen __P((const char *, const char *)); extern FILE *popen __P((const char *, const char *));
extern int pclose __P((FILE *)); extern int pclose __P((FILE *));
extern char *fgets __P((char *, int, FILE *)); extern char *fgets __P((char *, int, FILE *));

View File

@@ -55,10 +55,12 @@ static char rcsid[] = "$Id$";
#include <sys/param.h> #include <sys/param.h>
#ifndef STDC_HEADERS #ifndef STDC_HEADERS
#ifndef __GNUC__ /* gcc has its own malloc */
extern char *malloc __P((size_t));
#endif /* __GNUC__ */
extern char *strcpy __P((char *, const char *)); extern char *strcpy __P((char *, const char *));
extern int strlen __P((const char *)); extern int strlen __P((const char *));
extern char *getwd __P((char *)); extern char *getwd __P((char *));
extern char *malloc __P((size_t));
extern FILE *popen __P((const char *, const char *)); extern FILE *popen __P((const char *, const char *));
extern int pclose __P((FILE *)); extern int pclose __P((FILE *));
extern char *fgets __P((char *, int, FILE *)); extern char *fgets __P((char *, int, FILE *));

View File

@@ -46,9 +46,9 @@ static char rcsid[] = "$Id$";
#include <errno.h> #include <errno.h>
#include <sys/param.h> #include <sys/param.h>
#ifndef STDC_HEADERS #if !defined(STDC_HEADERS) && !defined(__GNUC__)
extern char *malloc __P((size_t)); extern char *malloc __P((size_t));
#endif /* !STDC_HEADERS */ #endif /* !STDC_HEADERS && !gcc */
/* /*

View File

@@ -53,7 +53,9 @@ static char rcsid[] = "$Id$";
#endif /* HAVE_MALLOC_H */ #endif /* HAVE_MALLOC_H */
#ifndef STDC_HEADERS #ifndef STDC_HEADERS
#ifndef __GNUC__ /* gcc has its own malloc */
extern char *malloc __P((size_t)); extern char *malloc __P((size_t));
#endif /* __GNUC__ */
extern char *strcpy __P((char *, const char *)); extern char *strcpy __P((char *, const char *));
#endif /* !STDC_HEADERS */ #endif /* !STDC_HEADERS */