darktable-org/darktable — pull request #6 by dumbbell (2012-06-01 15:04:46+00:00)
Title: *BSD: Don't define _XOPEN_SOURCE

Unlike Linux, defining _XOPEN_SOURCE on *BSD will restrict the namespace
to what X/Open defines, hiding other symbols.

And by default, _XOPEN_SOURCE, _BSD_SOURCE, _POSIX_SOURCE, etc. are not
defined. They are defined only when the namespace is restricted to one
of them.