Remove _GNU_SOURCE guard on tmpnam.
This shouldn't be guarded by _GNU_SOURCE. external/opencv3 expects P_tmpdir to be available. http://pubs.opengroup.org/onlinepubs/009695399/functions/tmpnam.html Test: make checkbuild Change-Id: Iba9ee03aec6e712356b571f7165ed1809e6227fe
This commit is contained in:
parent
91f33cd5ae
commit
c1020754c2
|
@ -150,11 +150,9 @@ char* gets(char*) __attribute__((deprecated("gets is unsafe, use fgets instead")
|
|||
int sprintf(char* __restrict, const char* __restrict _Nonnull, ...) __printflike(2, 3) __warnattr("sprintf is often misused; please use snprintf");
|
||||
int vsprintf(char* __restrict, const char* __restrict _Nonnull, __va_list) __printflike(2, 0) __warnattr("vsprintf is often misused; please use vsnprintf");
|
||||
char* tmpnam(char*) __attribute__((deprecated("tmpnam is unsafe, use mkstemp or tmpfile instead")));
|
||||
#if defined(__USE_BSD) || defined(__USE_GNU)
|
||||
#define P_tmpdir "/tmp/" /* deprecated */
|
||||
char* tempnam(const char*, const char*)
|
||||
__attribute__((deprecated("tempnam is unsafe, use mkstemp or tmpfile instead")));
|
||||
#endif
|
||||
|
||||
int rename(const char*, const char*);
|
||||
int renameat(int, const char*, int, const char*);
|
||||
|
|
Loading…
Reference in New Issue