Imported Upstream version 1.8.7
[debian/sudo] / compat / sig2str.c
index b233c9bbb9bba42da29c1b2e28557086fdfa13b3..6c9cd396648322436922613e41bebeb4170f8107 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2012-2013 Todd C. Miller <Todd.Miller@courtesan.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -16,6 +16,8 @@
 
 #include <config.h>
 
+#ifndef HAVE_SIG2STR
+
 #include <sys/types.h>
 
 #include <errno.h>
@@ -74,3 +76,4 @@ sig2str(int signo, char *signame)
     errno = EINVAL;
     return -1;
 }
+#endif /* HAVE_SIG2STR */