From 3b0e421de4a9514873932d1f2217e1256bbe3ef7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 4 Apr 2024 17:05:18 +0200 Subject: [PATCH] Use proper _POSIX_C_SOURCE constant --- libs/fst/wscript | 2 +- libs/tk/ydk-pixbuf/wscript | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/fst/wscript b/libs/fst/wscript index 725cd9ec15..d0d0ee72a0 100644 --- a/libs/fst/wscript +++ b/libs/fst/wscript @@ -38,7 +38,7 @@ def build(bld): obj.linkflags = ['-mwindows'] if re.search ("bsd", sys.platform) != None: - obj.defines.append('_POSIX_C_SOURCE=200809') + obj.defines.append('_POSIX_C_SOURCE=200809L') obj.defines.append('_XOPEN_SOURCE=700') obj.install_path = os.path.join(bld.env['LIBDIR']) diff --git a/libs/tk/ydk-pixbuf/wscript b/libs/tk/ydk-pixbuf/wscript index 8995b54681..b0a832f8b1 100644 --- a/libs/tk/ydk-pixbuf/wscript +++ b/libs/tk/ydk-pixbuf/wscript @@ -66,4 +66,4 @@ def build(bld): obj.ldflags = ' -lintl' if re.search ("bsd", sys.platform) != None: - obj.defines.append('_POSIX_C_SOURCE=200809') + obj.defines.append('_POSIX_C_SOURCE=200809L')