From db66fa6dd6b110bd9b72f6f68732263382aec323 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 23 Oct 2007 13:43:32 +0000 Subject: [PATCH] Do not include the useless semaphore standard header. It's not needed, and moreover, it seems to load stdio itself. So, loading semaphore from here causes getline to become undefined since stdio.h is loaded before portable.h got a chance to declare _GNU_SOURCE git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4859 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/include/xbt/xbt_os_thread.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/include/xbt/xbt_os_thread.h b/src/include/xbt/xbt_os_thread.h index f69276c0cd..8cc4f0f8c6 100644 --- a/src/include/xbt/xbt_os_thread.h +++ b/src/include/xbt/xbt_os_thread.h @@ -14,11 +14,6 @@ #include "xbt/misc.h" /* SG_BEGIN_DECL */ #include "xbt/function_types.h" -#ifndef WIN32 /* HAVE_SEMAPHOR_H */ -#include -#endif - - SG_BEGIN_DECL() /** @addtogroup XBT_thread -- 2.20.1