Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tsssssk
authordegomme <augustin.degomme@unibas.ch>
Sat, 5 Mar 2016 23:39:13 +0000 (00:39 +0100)
committerdegomme <augustin.degomme@unibas.ch>
Sat, 5 Mar 2016 23:39:13 +0000 (00:39 +0100)
Fix for freebsd compilation (hopefully)

src/xbt/xbt_os_thread.c

index 6b3d98a..22871e3 100644 (file)
 #endif
 
 #include <pthread.h>
+
+#if defined(__FreeBSD__)
+#include "pthread_np.h"
+#define cpu_set_t cpuset_t
+#endif
+
 #include <limits.h>
 #include <semaphore.h>
 #include <errno.h>