Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-27 10:08:47 -0500
committerDan McGee <dan@archlinux.org>2010-07-27 10:10:55 -0500
commitff689b6a383cbeb5ea699d587fe8975d71cae600 (patch)
tree2725a0a4c1b3330f05c5c122562f1151204fbc21 /src
parentfa4f25626c462e88ca0f6457bf9942980a5bd329 (diff)
Fix compile error in certain cases
I'm not sure why it doesn't happen everywhere, but we need <sys/stat.h> for umask and mkdir in this file. I hit this today: cc1: warnings being treated as errors util.c: In function ‘makepath’: util.c:128:2: error: implicit declaration of function ‘umask’ util.c:141:5: error: implicit declaration of function ‘mkdir’ make[2]: *** [util.o] Error 1 Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 0cae6d7c..557696b0 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -22,6 +22,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
+#include <sys/stat.h>
#include <sys/time.h>
#include <stdio.h>