login

<     >

2020-12-06 20:22:44 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

allow POSIX stuff like sigaction(3)

diff --git a/map.c b/map.c
index 3d4e42f..4b51e5d 100644
--- a/map.c
+++ b/map.c
@@ -1,7 +1,7 @@
-#include <string.h>
-
 #include "seqt.h"
 
+#include <string.h>
+
 int
 map_find(char type, const char *key)
 {

diff --git a/seqt.c b/seqt.c
index 17b3a8c..8b4da05 100644
--- a/seqt.c
+++ b/seqt.c
@@ -1,8 +1,8 @@
+#include "seqt.h"
+
 #include <stdlib.h>
 #include <stdio.h>
 
-#include "seqt.h"
-
 int ntracks;
 char map[MAPSIZE][RECSIZE];
 unsigned char matrix[MAXINDEX][MAXTRACK][MAXVOICE];

diff --git a/seqt.h b/seqt.h
index 2fe099c..81a5f21 100644
--- a/seqt.h
+++ b/seqt.h
@@ -1,6 +1,8 @@
 #ifndef SEQT_H
 #define SEQT_H
 
+#define _POSIX_C_SOURCE 200809L
+
 #include <stdio.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>

diff --git a/txt.c b/txt.c
index 4af7639..9c0e5ad 100644
--- a/txt.c
+++ b/txt.c
@@ -1,9 +1,9 @@
+#include "seqt.h"
+
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>
 
-#include "seqt.h"
-
 int
 load_txt(FILE *fp)
 {