* [PATCH] Fix multiple definitions of mk[o]stemp[s]64
@ 2016-11-22 12:55 Andreas Schwab
0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2016-11-22 12:55 UTC (permalink / raw)
To: libc-alpha
This fixes commit cd97c96688, without <fcntl.h> O_DIRECTORY is never
defined. Installed as obvious.
Andreas.
* misc/mkstemp.c: Include <fcntl.h>.
* misc/mkstemps.c: Likewise.
* misc/mkostemp.c: Likewise.
* misc/mkostemps.c: Likewise.
diff --git a/misc/mkostemp.c b/misc/mkostemp.c
index c990bbd75b..fee2b66cd1 100644
--- a/misc/mkostemp.c
+++ b/misc/mkostemp.c
@@ -15,6 +15,7 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/misc/mkostemps.c b/misc/mkostemps.c
index fcc6053ef3..a7a87bfa2e 100644
--- a/misc/mkostemps.c
+++ b/misc/mkostemps.c
@@ -16,6 +16,7 @@
<http://www.gnu.org/licenses/>. */
#include <errno.h>
+#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/misc/mkstemp.c b/misc/mkstemp.c
index 69c6c00b79..e125803a6b 100644
--- a/misc/mkstemp.c
+++ b/misc/mkstemp.c
@@ -15,6 +15,7 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/misc/mkstemps.c b/misc/mkstemps.c
index 1f46ef57fe..217606db7a 100644
--- a/misc/mkstemps.c
+++ b/misc/mkstemps.c
@@ -16,6 +16,7 @@
<http://www.gnu.org/licenses/>. */
#include <errno.h>
+#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
--
2.10.2
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-22 12:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-22 12:55 [PATCH] Fix multiple definitions of mk[o]stemp[s]64 Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).