about summary refs log tree commit homepage
path: root/svc.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-02-04 03:02:32 -0800
committerEric Wong <normalperson@yhbt.net>2012-02-05 04:55:11 +0000
commit5dde8e7c430bfe60fba562175d9ade62e1fbc8c3 (patch)
tree394235d6dfeb04364ca10b19de0d967438dc7d82 /svc.c
parenta77d40d00c5e59da46fdfc13bf7ab9f029b77f8b (diff)
downloadcmogstored-5dde8e7c430bfe60fba562175d9ade62e1fbc8c3.tar.gz
We need to have the dirfd() macro accessible
under FreeBSD 8.2, which seems to still think it's non-portable
(POSIX 2008.09 includes dirfd).
Diffstat (limited to 'svc.c')
-rw-r--r--svc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/svc.c b/svc.c
index 952ae34..777d2f9 100644
--- a/svc.c
+++ b/svc.c
@@ -2,6 +2,7 @@
  * Copyright (C) 2012, Eric Wong <normalperson@yhbt.net>
  * License: GPLv3 or later (see COPYING for details)
  */
+#include <dirent.h> /* needed for FreeBSD */
 #include "cmogstored.h"
 
 /* same default as MogileFS upstream */