null+****@clear*****
null+****@clear*****
2010年 7月 5日 (月) 13:58:28 JST
Kouhei Sutou 2010-07-05 04:58:28 +0000 (Mon, 05 Jul 2010) New Revision: 57a5c70e5b1996279d8a233342022a1cbebd31b1 Log: include unistd.h on no-WIN32 environment. Modified files: lib/groonga_in.h Modified: lib/groonga_in.h (+4 -4) =================================================================== --- lib/groonga_in.h 2010-07-05 04:46:54 +0000 (719cc8c) +++ lib/groonga_in.h 2010-07-05 04:58:28 +0000 (48fd5b7) @@ -52,10 +52,6 @@ #include <sys/param.h> #endif /* HAVE_SYS_PARAM_H */ -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif /* HAVE_UNISTD_H */ - #ifdef HAVE_SYS_MMAN_H #include <sys/mman.h> #endif /* HAVE_SYS_MMAN_H */ @@ -164,6 +160,10 @@ typedef SOCKET grn_sock; #define GROONGA_API +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif /* HAVE_UNISTD_H */ + # ifndef PATH_MAX # if defined(MAXPATHLEN) # define PATH_MAX MAXPATHLEN