support linux kernel apis (new archs) with old syscalls removed
[oweals/musl.git] / src / stdio / fgets.c
index 3135a69a2b9ebfe7b8475af708295c9e7e626056..b01a4187037d81e6457e473c4e682e24787c9021 100644 (file)
@@ -1,8 +1,9 @@
 #include "stdio_impl.h"
+#include <string.h>
 
 #define MIN(a,b) ((a)<(b) ? (a) : (b))
 
-char *fgets(char *s, int n, FILE *f)
+char *fgets(char *restrict s, int n, FILE *restrict f)
 {
        char *p = s;
        unsigned char *z;