diff options
author | Christophe GRENIER <grenier@cgsecurity.org> | 2008-02-16 12:10:56 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-02-17 17:33:57 -0500 |
commit | e7cc6f7d0b86d76963058ef099ca553da29d2c3f (patch) | |
tree | 6330b8039da0bedda548f1305184faa0a6198650 /lib/uuid | |
parent | d69e7e28ca4f82a98fb9fcb11a6d0a8d1064ba94 (diff) | |
download | e2fsprogs-e7cc6f7d0b86d76963058ef099ca553da29d2c3f.tar.gz |
Add portability checks to support DJGPP
DJGPP lacks sys/select.h and sys/un.h; add header checks to be more
portable.
Signed-off-by: Christophe Grenier <grenier@cgsecurity.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib/uuid')
-rw-r--r-- | lib/uuid/gen_uuid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/uuid/gen_uuid.c b/lib/uuid/gen_uuid.c index d4befe48..cf2b5a6f 100644 --- a/lib/uuid/gen_uuid.c +++ b/lib/uuid/gen_uuid.c @@ -59,7 +59,9 @@ #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif +#ifdef HAVE_SYS_UN_H #include <sys/un.h> +#endif #ifdef HAVE_SYS_SOCKIO_H #include <sys/sockio.h> #endif @@ -393,7 +395,7 @@ static ssize_t read_all(int fd, char *buf, size_t count) */ static int get_uuid_via_daemon(int op, uuid_t out, int *num) { -#ifdef USE_UUIDD +#if defined(USE_UUIDD) && defined(HAVE_SYS_UN_H) char op_buf[64]; int op_len; int s; |