summaryrefslogtreecommitdiff
path: root/prober/sniff_union_semun_defined.c
diff options
context:
space:
mode:
Diffstat (limited to 'prober/sniff_union_semun_defined.c')
-rw-r--r--prober/sniff_union_semun_defined.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/prober/sniff_union_semun_defined.c b/prober/sniff_union_semun_defined.c
new file mode 100644
index 0000000..8ec64eb
--- /dev/null
+++ b/prober/sniff_union_semun_defined.c
@@ -0,0 +1,12 @@
+//#define _XOPEN_SOURCE 500
+#include "Python.h"
+
+#include <sys/sem.h>
+
+int main(void) {
+ union semun foo;
+
+ foo.val = 42;
+
+ return 0;
+}