_GNU_SOURCE needed on apple as well?

This commit is contained in:
Kovid Goyal
2017-09-15 10:45:14 +05:30
parent fe7f3233ba
commit 5550c7a95f
+1 -5
View File
@@ -5,14 +5,10 @@
* Distributed under terms of the GPL3 license.
*/
#ifndef __APPLE__
// Need _GNU_SOURCE for pthread_setname_np on linux
// Need _GNU_SOURCE for pthread_setname_np
#define _GNU_SOURCE
#endif
#include <pthread.h>
#ifndef __APPLE__
#undef _GNU_SOURCE
#endif
#include "data-types.h"
#include <termios.h>
#include <unistd.h>