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:
@@ -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 *, ...));
|
||||||
|
4
getcwd.c
4
getcwd.c
@@ -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 *));
|
||||||
|
4
getwd.c
4
getwd.c
@@ -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 *));
|
||||||
|
4
putenv.c
4
putenv.c
@@ -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 */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
2
strdup.c
2
strdup.c
@@ -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 */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user