aboutsummaryrefslogtreecommitdiffstats
path: root/siglist.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>1996-12-23 17:02:34 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:49 +0000
commitccc6cda312fea9f0468ee65b8f368e9653e1380b (patch)
treeb059878adcfd876c4acb8030deda1eeb918c7e75 /siglist.c
parent726f63884db0132f01745f1fb4465e6621088ccf (diff)
downloadandroid_external_bash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.tar.gz
android_external_bash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.tar.bz2
android_external_bash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.zip
Imported from ../bash-2.0.tar.gz.
Diffstat (limited to 'siglist.c')
-rw-r--r--siglist.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/siglist.c b/siglist.c
index 7571cf0..cb45205 100644
--- a/siglist.c
+++ b/siglist.c
@@ -18,6 +18,10 @@ You should have received a copy of the GNU General Public License along
with Bash; see the file COPYING. If not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include "config.h"
+
+#if !defined (HAVE_SYS_SIGLIST) && !defined (HAVE_STRSIGNAL)
+
#include <stdio.h>
#include <sys/types.h>
#include <signal.h>
@@ -176,35 +180,35 @@ initialize_siglist ()
#if defined (SIGMSG)
sys_siglist[SIGMSG] = "HFT input data pending";
-#endif
+#endif
#if defined (SIGPWR)
sys_siglist[SIGPWR] = "power failure imminent";
-#endif
+#endif
#if defined (SIGDANGER)
sys_siglist[SIGDANGER] = "system crash imminent";
-#endif
+#endif
#if defined (SIGMIGRATE)
sys_siglist[SIGMIGRATE] = "migrate process to another CPU";
-#endif
+#endif
#if defined (SIGPRE)
sys_siglist[SIGPRE] = "programming error";
-#endif
+#endif
#if defined (SIGGRANT)
sys_siglist[SIGGRANT] = "HFT monitor mode granted";
-#endif
+#endif
#if defined (SIGRETRACT)
sys_siglist[SIGRETRACT] = "HFT monitor mode retracted";
-#endif
+#endif
#if defined (SIGSOUND)
sys_siglist[SIGSOUND] = "HFT sound sequence has completed";
-#endif
+#endif
for (i = 0; i < NSIG; i++)
{
@@ -217,3 +221,4 @@ initialize_siglist ()
}
}
}
+#endif /* !HAVE_SYS_SIGLIST && !HAVE_STRSIGNAL */