[gecode-users] [BUG] missing include

Denys Duchier denys.duchier at univ-orleans.fr
Wed May 20 16:18:38 CEST 2009


The following include is missing in gecode/support/thread/pthreads.hpp
causing compilation to fail for me (unknown sleep(3) and usleep(3)) in
both 3.1.0 and trunk:

#ifdef GECODE_HAS_UNISTD_H
#include <unistd.h>
#endif

or perhaps more correctly:

#ifdef GECODE_HAS_UNISTD_H
extern "C" {
#include <unistd.h>
}
#endif


--Denys




More information about the gecode-users mailing list