diff options
author | David Robillard <d@drobilla.net> | 2012-01-08 15:49:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-08 15:49:45 +0000 |
commit | d7ea96c20f33febd871adea36e6ab5d77614d3db (patch) | |
tree | 7a54884fbbb11bacd070d202e22fd316acde7e32 /src/util.c | |
parent | abd4d49c65afd967c813822a34b80b5a95bdebc3 (diff) | |
download | lilv-d7ea96c20f33febd871adea36e6ab5d77614d3db.tar.gz lilv-d7ea96c20f33febd871adea36e6ab5d77614d3db.tar.bz2 lilv-d7ea96c20f33febd871adea36e6ab5d77614d3db.zip |
Fix compilation on Mac OS X.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3923 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -14,8 +14,12 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _POSIX_SOURCE 1 /* for wordexp, fileno */ -#define _BSD_SOURCE 1 /* for realpath, symlink */ +#define _POSIX_C_SOURCE 1 /* for wordexp, fileno */ +#define _BSD_SOURCE 1 /* for realpath, symlink */ + +#ifdef __APPLE__ +# define _DARWIN_C_SOURCE 1 /* for flock */ +#endif #include <assert.h> #include <errno.h> |