Message ID | F5FDAC8BFE2A485C97C01535BDAA2ECA@JohanW7 |
---|---|
State | Not Applicable |
Headers | show |
Dear Sagaert Johan, On Wed, 18 Sep 2013 20:05:29 +0200, Sagaert Johan wrote: > I have a patch here to remove the inline execvpe function, > I did not dive deep into it but I suppose this inline was needed for older versions of uClibc. > My build with uClibc 0.9.33.2 finished without the inline execvpe. > > How can a patch be applied if, and only if uClibc 0.9.33.2 is selected ? > In other words is there some infrastructure in buildroot to apply patches based on a specified condition ? I believe that Eric's patches take care of that, by adding an AC_CHECK_FUNCS on execvpe. See http://patchwork.ozlabs.org/patch/273211/. Best regards, Thomas
diff --git a/src/macro.h b/src/macro.h index e1ddff3..d88b802 100644 --- a/src/macro.h +++ b/src/macro.h @@ -36,12 +36,6 @@ #define _GNU_SOURCE #endif #include <unistd.h> -static inline int execvpe(const char *file, char *const argv[], - char *const envp[]) -{ - environ = (char **)envp; - return execvp(file, argv); -} #endif #define _printf_attr_(a,b) __attribute__ ((format (printf, a, b))) #define _sentinel_ __attribute__ ((sentinel))