Skip to contentSkip to conversation

open11.c: Define _GNU_SOURCE which is required for O_DIRECTORY

PATCH In review Markos Chandras 2 participants 2 messages Feb 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 open11.c: Define _GNU_SOURCE which is required for O_DIRECTORY

From: Markos Chandras <[email protected]>

O_DIRECTORY is only available if _GNU_SOURCE is defined in uClibc toolchains:

---
 testcases/kernel/syscalls/open/open11.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
testcases/kernel/syscalls/open/open11.c +1 -0
index a042130..8f06948 100644
@@ -59,6 +59,7 @@
  *     but should not oops or hang
  */
 
+#define _GNU_SOURCE
 #include "config.h"
 #include <sys/types.h>
 #include <sys/stat.h>
Signature · 13 lines
1.7.1



------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi!

Quoted 2 lines

O_DIRECTORY is only available if _GNU_SOURCE is defined in uClibc toolchains:

Looks like I've been too hasty with ifdefing it out.

Commited thanks.

Signature · 12 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list