Skip to content
Snippets Groups Projects
Commit 256b1918 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel :man_dancing:
Browse files

Repeat execvpe(3) prototype (fup to 7bad9d7d)

This is needed in case `<unistd.h>` was included before "execvpe.h"
w/o `_GNU_SOURCE` set (on Glibc systems)
parent 7bad9d7d
No related branches found
No related merge requests found
...@@ -16,6 +16,8 @@ __hsunix_execvpe(const char *name, char *const argv[], char *const envp[]); ...@@ -16,6 +16,8 @@ __hsunix_execvpe(const char *name, char *const argv[], char *const envp[]);
#if HAVE_EXECVPE #if HAVE_EXECVPE
# define _GNU_SOURCE # define _GNU_SOURCE
# include <unistd.h> # include <unistd.h>
extern int
execvpe(const char *name, char *const argv[], char *const envp[]);
#else #else
# define execvpe(name,argv,envp) __hsunix_execvpe(name,argv,envp) # define execvpe(name,argv,envp) __hsunix_execvpe(name,argv,envp)
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment