moving POSIX_VISIBLE to the waf script part
authorDavid Carlier <devnexen@gmail.com>
Fri, 18 Nov 2016 12:34:11 +0000 (12:34 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 29 Nov 2016 13:18:46 +0000 (13:18 +0000)
libs/fst/scanner.cc
libs/fst/wscript

index f6478bcb5f63f5d9ae482b145d1acf0e9d674d8f..18f4048cbbbb26f1713c61693b4583ad9a2517c0 100644 (file)
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 465ba65840ade6a35ed5de8ed623930a15a91a37..ca90b7207d32c56fa609b8b39dc29d0d74ee6170 100644 (file)
@@ -88,7 +88,7 @@ def build(bld):
         'PACKAGE="' + I18N_PACKAGE + str(bld.env['MAJOR']) + '"',
         'LIBARDOUR="' + bld.env['lwrcase_dirname'] + '"',
         ]
-    if re.search ("freebsd", sys.platform) != None:
+    if re.search ("freebsd", sys.platform) != None or re.search ("openbsd", sys.platform) != None:
         obj.defines.append('_POSIX_C_SOURCE=200809')
         obj.defines.append('_XOPEN_SOURCE=700')