build: Solaris needs __EXTENSIONS__ instead of _GNU_SOURCE
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 10 Sep 2019 00:56:42 +0000 (17:56 -0700)
committerRan Benita <ran234@gmail.com>
Wed, 11 Sep 2019 17:30:37 +0000 (20:30 +0300)
commit934d5741727886fe90e9c2a4d90e63bbd2cb2226
treea46eae22c2c8bd128c543128c84417dce9a5ffe1
parent25cd67daf7ef7a4bfe49a2b91b2fe085e36ae786
build: Solaris needs __EXTENSIONS__ instead of _GNU_SOURCE

Fix meson build on Solaris by using __EXTENSIONS__ where Linux & other
platforms use _GNU_SOURCE.  Without this the build fails due to missing
prototypes for functions like strdup & getopt not defined in the C99
standard.  (In autoconf, this was handled by AC_USE_SYSTEM_EXTENSIONS.)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
meson.build