OpenBSD fixed for lib/DtSvc.

This commit is contained in:
Pascal Stumpf
2012-08-09 22:51:52 +02:00
committed by Jon Trulson
parent 78053ff2a4
commit 185ec24999
10 changed files with 22 additions and 14 deletions

View File

@@ -43,7 +43,7 @@
#ifdef __apollo
#include "/sys5/usr/include/sys/termio.h"
#else
#include <termio.h>
#include <termios.h>
#endif
#include <errno.h>
#include <unistd.h>
@@ -989,7 +989,7 @@ _DtCmdCommandInvokerExecute (
if (commandPid == 0)
{
#if defined(__hp_osf) || defined(__osf__)
#if defined(__hp_osf) || defined(__osf__) || defined(CSRG_BASED)
setsid() ;
#else
(void) setpgrp ();

View File

@@ -104,6 +104,8 @@ extern void _DtDtsSeqReset(void);
extern int _DtDtsNextDCSeq(void);
extern int _DtDtsNextDASeq(void);
char **_DtsDbListDb(void);
int use_in_memory_db = False;
static void

View File

@@ -49,7 +49,6 @@
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <values.h>
#include <sys/mman.h>
#include <stdio.h>
#include <fcntl.h>
@@ -59,6 +58,10 @@
* On HP MAXINT is defined in both <values.h> and <sys/param.h>
*/
#undef MAXINT
#elif defined(CSRG_BASED)
#define MAXINT INT_MAX
#else
#include <values.h>
#endif
#include <sys/param.h>
#include <sys/errno.h>