tests - fix check header to always include eina due to windows

windows means HAVE_FORK is false... thus missing eina.h and now we
have macros that use eina calls always... so this fixes nbuild of
tests on windows

@fix
This commit is contained in:
Carsten Haitzler 2019-04-07 14:14:55 +01:00
parent 954a534bc0
commit 1f402946a2
1 changed files with 14 additions and 13 deletions

View File

@ -13,28 +13,29 @@
#include <sys/time.h>
#ifdef HAVE_FORK
#ifdef HAVE_SYS_TYPES_H
# ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_WAIT_H
# endif
# ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
# endif
# include <signal.h>
#endif
#include <signal.h>
#include <Eina.h>
#endif
#ifndef EINA_UNUSED
#ifdef __GNUC__
# ifdef __GNUC__
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
# define EINA_UNUSED __attribute__ ((__unused__))
# else
# define EINA_UNUSED
# endif
#else
# else
# define EINA_UNUSED
#endif
# endif
#endif