浏览代码

dolib is built without libstarpu actually, so don't try to include starpu headers

Samuel Thibault 10 年之前
父节点
当前提交
7a5e71cc8e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/dolib.c

+ 2 - 2
src/dolib.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2012  Université de Bordeaux 1
+ * Copyright (C) 2010, 2012, 2014  Université de Bordeaux 1
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -19,7 +19,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <common/config.h>
-#ifdef HAVE_UNISTD_H
+#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
 #include <unistd.h>
 #endif