- include/starpu_top.h: does not need to include unistd.h. When included, compilation with nvcc/mvs fails - src/top/starputop_connection.c: include starpu_config.h to detect configuration and include now missing unisdt.h
@@ -19,7 +19,6 @@
#define __STARPU_TOP_H__
#include <stdlib.h>
#include <time.h>
-#include <unistd.h>
#include <starpu.h>
#ifdef __cplusplus
@@ -15,6 +15,8 @@
* See the GNU Lesser General Public License in COPYING.LGPL for more details.
*/
+#include <starpu_config.h>
+
#ifdef STARPU_HAVE_WINDOWS
# include <w32api.h>
# define WINVER WindowsXP
@@ -33,6 +35,7 @@
#include <string.h>
#include <sys/types.h>
+#include <unistd.h>
const char *STARPUTOP_PORT = "2011";
const int STARPUTOP_BUFFER_SIZE=1024;