Skip to content
Permalink
Browse files

Conditionally include unistd.h from libnfs-zdr.c as some platforms la…

…ck this header

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  • Loading branch information...
sahlberg committed Sep 20, 2016
1 parent 5f75307 commit 6cde2aca64d9bf4d92ddd63f34b8f3502a3c3430
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/libnfs-zdr.c
@@ -36,11 +36,14 @@
#include <arpa/inet.h>
#endif

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"

0 comments on commit 6cde2ac

Please sign in to comment.
You can’t perform that action at this time.