about summary refs log tree commit diff
path: root/sysdeps/generic/glob64.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/glob64.c')
-rw-r--r--sysdeps/generic/glob64.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/generic/glob64.c b/sysdeps/generic/glob64.c
index 6e1b835f8d..72c2a807be 100644
--- a/sysdeps/generic/glob64.c
+++ b/sysdeps/generic/glob64.c
@@ -16,6 +16,10 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <sys/types.h>
+#include <glob.h>
+#include <errno.h>
+
 /* Do glob searching for PATTERN, placing results in PGLOB.
    The bits defined above may be set in FLAGS.
    If a directory cannot be opened or read and ERRFUNC is not nil,
@@ -26,7 +30,7 @@
    Otherwise, `glob' returns zero.  */
 int
 glob64 (const char *pattern, int flags,
-	int (*errfunc) (const char *, int), glib64_t *pglob);
+	int (*errfunc) (const char *, int), glob64_t *pglob)
 {
   if (pattern == NULL || pglob == NULL || (flags & ~__GLOB_FLAGS) != 0)
     {