Portability fixes from Mats Erik Andersson <debian@gisladisker.se>

It restores compilability and most functionality for

   GNU/Linux,
   GNU/kFreeBSD,
   FreeBSD,
   OpenBSD,
   OpenSolaris/NexentaCore.
This commit is contained in:
pdw
2014-01-01 15:22:48 +00:00
parent 975b775fd0
commit 6d384fc12d
5 changed files with 16 additions and 5 deletions

View File

@@ -25,6 +25,7 @@ typedef unsigned long ulong;
#include <sys/dlpi.h>
#include <sys/signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dlcommon.h"
@@ -462,7 +463,7 @@ char *bufp;
err("dlphysaddrack: short response ctl.len: %d", ctl.len);
}
static void
void
sigalrm()
{
(void) err("sigalrm: TIMEOUT");