fix deprecation of _BSD_SOURCE feature test macro (#9861)

caused a build warning in linenoise since glibc 2.20
This commit is contained in:
yoav-steinberg 2021-11-29 16:09:20 +02:00 committed by GitHub
parent 9f9c78578f
commit 2386e54182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@
*
*/
#define _DEFAULT_SOURCE /* For fchmod() */
#define _BSD_SOURCE /* For fchmod() */
#include <termios.h>
#include <unistd.h>