pkgsrc/net/openvmps/patches/patch-ac
bouyer 20b937ad52 Import openvmps 1.3 to the package collection.
VMPS (VLAN Management Policy Server) is a way of assigning switch ports to
specific VLANs based on the MAC address of connecting device. OpenVMPS is a
GPL implementation of VMPS.
2005-06-06 16:07:42 +00:00

25 lines
576 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2005/06/06 16:07:43 bouyer Exp $
--- vmpsd.c.orig Mon Jun 6 14:20:37 2005
+++ vmpsd.c Mon Jun 6 14:21:50 2005
@@ -137,9 +137,19 @@
#ifdef HAVE_SIGACTION
{
struct sigaction action;
- action.sa_sigaction = handle_sighup;
sigemptyset(&action.sa_mask);
+#ifdef SA_SIGINFO
+ action.sa_sigaction = handle_sighup;
action.sa_flags = SA_SIGINFO;
+#else
+ action.sa_handler = handle_sighup;
+#ifdef SA_RESTART
+ action.sa_flags = SA_RESTART;
+#else
+ action.sa_flags = 0;
+#endif
+#endif
+
sigaction(SIGHUP, &action, NULL);
}
#else