mirror of
https://github.com/troglobit/libite.git
synced 2026-11-13 17:01:18 +00:00
In tempfile(): O_DIRECTORY is dependent on $ARCH, don't hardcore O_TMPFILE
Signed-off-by: Johan Askerin <johan.askerin@gmail.com>
This commit is contained in:
1 parent
0a57f2128f
commit
4d7e6d4f78
1 file changed
+2
-1
+2
-1
@@ -24,7 +24,8 @@
|
|||||||
|
|
||||||
#ifndef O_TMPFILE /* Too old GLIBC or kernel */
|
#ifndef O_TMPFILE /* Too old GLIBC or kernel */
|
||||||
#warning O_TMPFILE missing on your system, tempfile() may not work!
|
#warning O_TMPFILE missing on your system, tempfile() may not work!
|
||||||
#define O_TMPFILE 020200000 /* Define and let it fail at runtime */
|
#define __O_TMPFILE 020000000
|
||||||
|
#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) /* Define and let it fail at runtime */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user