Tooltalk fixes for OpenBSD. This consists mainly of #ifdefs, casts and some small type nits.

This commit is contained in:
Pascal Stumpf
2012-08-10 14:07:06 +02:00
committed by Jon Trulson
parent 3d5a492038
commit 3b77d7c065
39 changed files with 129 additions and 62 deletions

View File

@@ -39,7 +39,7 @@ static char sccsid[] = "@(#)iscntl.c 1.8 94/11/17";
* Generic control function
*/
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <stdarg.h>
#else
#include <varargs.h>
@@ -79,7 +79,7 @@ static char sccsid[] = "@(#)iscntl.c 1.8 94/11/17";
typedef int (* intfunc)();
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
int
iscntl(int isfd, int func, ...)
#else
@@ -94,7 +94,7 @@ iscntl(isfd, func, va_alist)
va_list pvar;
int ret;
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
va_start(pvar, func);
#else
va_start(pvar);