added #include <unistd.h> for GCC 4.7+

This commit is contained in:
reg_ 2012-06-07 15:21:10 +00:00
parent 53e174aff2
commit 26a084f92f
6 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,8 @@
#ifdef WIN32 #ifdef WIN32
#include <direct.h> /* getcwd */ #include <direct.h> /* getcwd */
#include <windows.h> #include <windows.h>
#else
#include <unistd.h>
#endif #endif
/** /**

View File

@ -23,6 +23,7 @@
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <Windows.h>
#else #else
#include <unistd.h>
//#include <kiwix/cluceneIndexer.h> //#include <kiwix/cluceneIndexer.h>
#endif #endif

View File

@ -23,6 +23,8 @@
#ifndef _WIN32 #ifndef _WIN32
#include <kiwix/cluceneIndexer.h> #include <kiwix/cluceneIndexer.h>
#else
#include <unistd.h>
#endif #endif
#include <kiwix/reader.h> #include <kiwix/reader.h>

View File

@ -1,5 +1,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h>
#include "pathTools.h" #include "pathTools.h"

View File

@ -17,6 +17,7 @@
* MA 02110-1301, USA. * MA 02110-1301, USA.
*/ */
#include <unistd.h>
#include <getopt.h> #include <getopt.h>
#include <iostream> #include <iostream>
#include <cstdlib> #include <cstdlib>

View File

@ -42,6 +42,7 @@ int gettimeofday(struct timeval* tp, void* tzp) {
#define getpid GetCurrentProcessId #define getpid GetCurrentProcessId
#else #else
#include <unistd.h>
# include <sys/time.h> # include <sys/time.h>
#endif #endif