summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2020-07-02 10:42:41 +0200
committerGitHub <noreply@github.com>2020-07-02 10:42:41 +0200
commitf12546b4f3dc8a4b84fbba3f2e06a02a9322ccc0 (patch)
tree198845f96c8783731734784ae0d3461ad7947486
parent62b099af00b542bdb08471058d527af258a349cf (diff)
parentd65f4c92e8ed405937a7bac3248d24fa6b40eb6f (diff)
downloadfilo-f12546b4f3dc8a4b84fbba3f2e06a02a9322ccc0.tar.gz
filo-f12546b4f3dc8a4b84fbba3f2e06a02a9322ccc0.zip
Merge pull request #55 from skeeto/master
Use _POSIX_C_SOURCE, drop _BSD_SOURCE, _GNU_SOURCE (#5, #12)
-rw-r--r--kilo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kilo.c b/kilo.c
index 9490a77..5405e45 100644
--- a/kilo.c
+++ b/kilo.c
@@ -34,8 +34,7 @@
#define KILO_VERSION "0.0.1"
-#define _BSD_SOURCE
-#define _GNU_SOURCE
+#define _POSIX_C_SOURCE 200809L
#include <termios.h>
#include <stdlib.h>
@@ -44,6 +43,7 @@
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
+#include <time.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/time.h>