summaryrefslogtreecommitdiff
path: root/signal/allocrtsig.c
diff options
context:
space:
mode:
Diffstat (limited to 'signal/allocrtsig.c')
-rw-r--r--signal/allocrtsig.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/signal/allocrtsig.c b/signal/allocrtsig.c
index e1dde79b66..6f49c8ef12 100644
--- a/signal/allocrtsig.c
+++ b/signal/allocrtsig.c
@@ -1,5 +1,5 @@
/* Handle real-time signal allocation.
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -28,8 +28,8 @@
static int current_rtmin = -1;
static int current_rtmax = -1;
#else
-static int current_rtmin = __SIGRTMIN;
-static int current_rtmax = __SIGRTMAX;
+static int current_rtmin;
+static int current_rtmax;
static int initialized;
@@ -43,6 +43,11 @@ init (void)
current_rtmin = -1;
current_rtmax = -1;
}
+ else
+ {
+ current_rtmin = __SIGRTMIN;
+ current_rtmax = __SIGRTMAX;
+ }
initialized = 1;
}
#endif