Skip to content

Commit

Permalink
fix deprecation of _BSD_SOURCE feature test macro (redis#9861)
Browse files Browse the repository at this point in the history
caused a build warning in linenoise since glibc 2.20
  • Loading branch information
yoav-steinberg authored Nov 29, 2021
1 parent 9f9c785 commit 2386e54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deps/linenoise/linenoise.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
*
*/

#define _DEFAULT_SOURCE /* For fchmod() */
#define _BSD_SOURCE /* For fchmod() */
#include <termios.h>
#include <unistd.h>
Expand Down

0 comments on commit 2386e54

Please sign in to comment.