Skip to content

Add basic FreeBSD support#3

Open
Crest wants to merge 4 commits intoAmaury:masterfrom
Crest:master
Open

Add basic FreeBSD support#3
Crest wants to merge 4 commits intoAmaury:masterfrom
Crest:master

Conversation

@Crest
Copy link

@Crest Crest commented Jun 23, 2014

I took a look at FineDB and noticed missing FreeBSD support. This pull request implements the minor changes required to compile FineDB on FreeBSD.

Crest and others added 4 commits June 23, 2014 20:15
The msghdr structure used in
static yerr_t _command_list_loop(void*,ybin_t,ybin_t)
is defined in <sys/socket.h>.

Fixes build error on FreeBSD.
Each platform offers a different API for reading
the path to the executable file. On FreeBSD this
path is readable through a sysctl MIB.
The <linux/limits.h> header is Linux specific and
src/server/server.c compiles on FreeBSD without
including this header.
Some platforms (e.g. FreeBSD) lack O_DSYNC.
It is easier and cleaner to detect a missing
define with ifdefs than with make.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant