diff options
Diffstat (limited to 'meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch')
-rw-r--r-- | meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch b/meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch new file mode 100644 index 000000000..ca10440a8 --- /dev/null +++ b/meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | uclibc does not have mkostemp() so we redefine it to use mkstemp() | ||
2 | |||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
4 | |||
5 | Index: git/src/macro.h | ||
6 | =================================================================== | ||
7 | --- git.orig/src/macro.h 2011-06-30 10:33:53.000000000 -0700 | ||
8 | +++ git/src/macro.h 2011-06-30 15:07:28.285270006 -0700 | ||
9 | @@ -27,6 +27,10 @@ | ||
10 | #include <sys/uio.h> | ||
11 | #include <inttypes.h> | ||
12 | |||
13 | +#ifdef __UCLIBC__ | ||
14 | +/* uclibc does not implement mkostemp GNU extention */ | ||
15 | +#define mkostemp(x,y) mkstemp(x) | ||
16 | +#endif | ||
17 | #define _printf_attr_(a,b) __attribute__ ((format (printf, a, b))) | ||
18 | #define _sentinel_ __attribute__ ((sentinel)) | ||
19 | #define _noreturn_ __attribute__((noreturn)) | ||