diff options
author | Dan McGee <dan@archlinux.org> | 2010-07-27 17:08:47 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-07-27 17:10:55 +0200 |
commit | ff689b6a383cbeb5ea699d587fe8975d71cae600 (patch) | |
tree | 2725a0a4c1b3330f05c5c122562f1151204fbc21 | |
parent | fa4f25626c462e88ca0f6457bf9942980a5bd329 (diff) | |
download | pacman-ff689b6a383cbeb5ea699d587fe8975d71cae600.tar.gz pacman-ff689b6a383cbeb5ea699d587fe8975d71cae600.tar.xz |
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>
-rw-r--r-- | src/pacman/util.c | 1 |
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> |