Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix building of mongoose under FreeBSD. #17

Merged
merged 1 commit into from

2 participants

@dnaeon

According to flockfile(3) under Linux you need only this:

#define _XOPEN_SOURCE

This also fixes the build under FreeBSD.

@dnaeon dnaeon Fix building of mongoose under FreeBSD.
According to flockfile(3) under Linux you need only this:

    #define _XOPEN_SOURCE

* http://man7.org/linux/man-pages/man3/flockfile.3.html

This also fixes the build under FreeBSD.
0521d78
@cpq cpq merged commit fadb60d into cesanta:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 4, 2012
  1. @dnaeon

    Fix building of mongoose under FreeBSD.

    dnaeon authored
    According to flockfile(3) under Linux you need only this:
    
        #define _XOPEN_SOURCE
    
    * http://man7.org/linux/man-pages/man3/flockfile.3.html
    
    This also fixes the build under FreeBSD.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  mongoose.c
View
2  mongoose.c
@@ -21,7 +21,7 @@
#if defined(_WIN32)
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
#else
-#define _XOPEN_SOURCE 600 // For flockfile() on Linux
+#define _XOPEN_SOURCE // For flockfile() on Linux
#define _LARGEFILE_SOURCE // Enable 64-bit file offsets
#define __STDC_FORMAT_MACROS // <inttypes.h> wants this for C++
#define __STDC_LIMIT_MACROS // C++ wants that for INT64_MAX
Something went wrong with that request. Please try again.