fix some obscure header type size/alignment issues
[musl] / include / wordexp.h
index 91995c4..d12081e 100644 (file)
@@ -5,6 +5,8 @@
 extern "C" {
 #endif
 
+#include <features.h>
+
 #define __NEED_size_t
 
 #include <bits/alltypes.h>
@@ -19,7 +21,7 @@ extern "C" {
 typedef struct
 {
        size_t we_wordc;
-       char **wc_wordv;
+       char **we_wordv;
        size_t we_offs;
 } wordexp_t;
 
@@ -30,7 +32,7 @@ typedef struct
 #define WRDE_CMDSUB  4
 #define WRDE_SYNTAX  5
 
-int wordexp (const char *, wordexp_t *, int);
+int wordexp (const char *__restrict, wordexp_t *__restrict, int);
 void wordfree (wordexp_t *);
 
 #ifdef __cplusplus