summaryrefslogtreecommitdiff
path: root/support/scandir.c
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>1998-04-13 23:39:05 +0000
committerRaja R Harinath <harinath@src.gnome.org>1998-04-13 23:39:05 +0000
commit70dd5b3b142123b882d85a41d21592a79c079428 (patch)
treec6ae3199bb56f190683411dda9097d668e7cbc86 /support/scandir.c
parent4d77e46422bb506be06fb6695c343befb64b5a58 (diff)
downloadshared-mime-info-70dd5b3b142123b882d85a41d21592a79c079428.tar.gz
Include. Do all the `dirent' wrangling only if `scandir' is needed. Also,
* scandir.c (<sys/types.h>): Include. * gnomesupport-h.c (!HAVE_SCANDIR): Do all the `dirent' wrangling only if `scandir' is needed. Also, include <sys/types.h> in all cases. svn path=/trunk/; revision=192
Diffstat (limited to 'support/scandir.c')
-rw-r--r--support/scandir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/scandir.c b/support/scandir.c
index 26fe3617..1b45e376 100644
--- a/support/scandir.c
+++ b/support/scandir.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#include <sys/types.h>
#if HAVE_DIRENT_H
# include <dirent.h>