last fixes
[my-code/api.git] / input / input.h
index d7ceb4a..c464354 100644 (file)
@@ -4,6 +4,7 @@
 #define INPUT_H
 
 /* includes */
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -26,6 +27,7 @@
 
 /* input specific variables */
 typedef struct s_input {
+  int outfd;
   char *content;
   int c_count;
   unsigned char mode;