_GNU_SOURCE needed on apple as well?

This commit is contained in:
Kovid Goyal 2017-09-08 06:44:05 +05:30
parent fe7f3233ba
commit 5550c7a95f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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>