From 490f53c270798d86bcd6c5fb4a6817575b240f8d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 15 Oct 1996 13:25:34 +0000 Subject: Second round of QNX changes. svn path=/trunk/; revision=335 --- Makefile.in | 9 +++++++-- driver.c | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index d62d7440..24ca45e6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -10,6 +10,7 @@ srcdir = @srcdir@ VPATH = @srcdir@ CC = @CC@ +# CC = cc # QNX CFLAGS = @CFLAGS@ # CFLAGS = -g2 -5 # QNX @@ -18,6 +19,7 @@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXFLAGS= YACC = @YACC@ +# YACC = yacc YACCFLAGS = -dt # How to invoke ranlib. This is only used by the `glob' subdirectory. @@ -25,8 +27,9 @@ RANLIB = @RANLIB@ # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline. # See also `config.h'. -defines = -DRELEASE_ID=\"$(VERS)\" @DEFS@ -# defines = -DHAVE_CONFIG_H -DQNX -DHAVE_UNISTD_H -DSTDC_HEADERS # QNX +DEFS = @DEFS@ +# DEFS = -DHAVE_CONFIG_H -DQNX -DHAVE_UNISTD_H -DSTDC_HEADERS # QNX +defines = -DRELEASE_ID=\"$(VERS)\" $(DEFS) # If your system needs extra libraries loaded in, define them here. LOADLIBS = @LIBS@ @LEXLIB@ @@ -37,7 +40,9 @@ extras = @LIBOBJS@ # Extra sources/objects for library functions not provided on the host system. EXTRASRC = @EXTRASRC@ +# EXTRASRC = $(srcdir)/strcasecmp.c $(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/alloca.c # QNX EXTRAOBJ = @EXTRAOBJ@ +# EXTRAOBJS = strcasecmp.o getopt.o getopt1.o alloca.o # Common prefix for machine-independent installed files. prefix = @prefix@ diff --git a/driver.c b/driver.c index a52ffe24..715607e3 100644 --- a/driver.c +++ b/driver.c @@ -14,7 +14,11 @@ #include #include #include +#ifdef QNX +#include +#else #include +#endif #include #include #include @@ -842,10 +846,15 @@ closeUp: globals: reads outlevel. *********************************************************************/ +#if defined(QNX) +void gen_send(int socket, char *fmt, ... ) +{ +#else void gen_send(socket, fmt, va_alist) int socket; const char *fmt; va_dcl { +#endif char buf [POPBUFSIZE+1]; va_list ap; @@ -855,7 +864,11 @@ va_dcl { else buf[0] = '\0'; +#if defined(QNX) + va_start(ap, fmt) ; +#else va_start(ap); +#endif vsprintf(buf + strlen(buf), fmt, ap); va_end(ap); @@ -899,7 +912,11 @@ va_dcl { else buf[0] = '\0'; +#if defined(QNX) + va_start(ap, fmt) ; +#else va_start(ap); +#endif vsprintf(buf + strlen(buf), fmt, ap); va_end(ap); -- cgit v1.2.3