diff --git a/src/util/vircommand.c b/src/util/vircommand.c index 969d4c28ef..ea52acfbb8 100644 --- a/src/util/vircommand.c +++ b/src/util/vircommand.c @@ -472,7 +472,7 @@ virExecCommon(virCommand *cmd, gid_t *groups, int ngroups) return 0; } -# if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) +# ifdef __linux__ static int virCommandMassCloseGetFDsDir(virBitmap *fds, const char *dirName) @@ -502,7 +502,7 @@ virCommandMassCloseGetFDsDir(virBitmap *fds, return 0; } -# endif /* defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) */ +# endif /* __linux__ */ static int virCommandMassCloseGetFDs(virBitmap *fds) @@ -513,8 +513,6 @@ virCommandMassCloseGetFDs(virBitmap *fds) * onto child process (well, the one we will exec soon since this * is called from the child). */ return virCommandMassCloseGetFDsDir(fds, "/proc/self/fd"); -# elif defined(__APPLE__) || defined(__FreeBSD__) - return virCommandMassCloseGetFDsDir(fds, "/dev/fd"); # else virBitmapSetAll(fds); return 0;