summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorR. Bernstein <rocky@gnu.org>2010-11-30 21:27:43 -0500
committerR. Bernstein <rocky@gnu.org>2010-11-30 21:27:43 -0500
commit42534c91f6e3cc896782ebd82c46918156a052bf (patch)
tree06e7ab0b25c0fa984c372d776a08ef553371bab3 /src
parent52f5643881905cb34f248b51015ac2eababf4177 (diff)
Guard against not having S_ISLNK and S_ISSOCK.
Diffstat (limited to 'src')
-rw-r--r--src/util.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index bfaca828..c23a2ed2 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1,7 +1,6 @@
/*
- $Id: util.c,v 1.54 2008/04/14 17:30:27 karl Exp $
-
- Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
+ Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010
+ Rocky Bernstein <rocky@gnu.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -27,6 +26,13 @@
# include <sys/stat.h>
#endif
+#ifndef HAVE_S_ISLNK
+# define S_ISLNK(s) ((void)s,0)
+#endif
+#ifndef HAVE_S_ISSOCK
+# define S_ISSOCK(s) ((void)s,0)
+#endif
+
cdio_log_handler_t gl_default_cdio_log_handler = NULL;
char *source_name = NULL;
char *program_name;