From a89d2ebf83369061f232cd5c3a1d91159873afb7 Mon Sep 17 00:00:00 2001 From: srittau Date: Thu, 17 Jan 2002 06:13:02 +0000 Subject: [PATCH] Cleanups that aim towards the 64bit fixes. --- sys/solaris/Makefile.kernel | 7 ++++--- sys/solaris/aarp.c | 6 +++++- sys/solaris/ddp.c | 6 +++++- sys/solaris/dlpi.c | 5 +++++ 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/sys/solaris/Makefile.kernel b/sys/solaris/Makefile.kernel index 3a1be8ee..611afd4b 100644 --- a/sys/solaris/Makefile.kernel +++ b/sys/solaris/Makefile.kernel @@ -10,10 +10,11 @@ USE_CRYPTLIB=no # use gcc (gcc-2.95 on 64-bit sparc) CC= gcc +LD= ld KCFLAGS= -D_KERNEL -Wall -Wstrict-prototypes ${KGCCFLAGS} # -mcpu=ultrasparc OPTOPTS= -O CSHAREDFLAGS= -fPIC -LDSHARED= gcc +LDSHARED= ${CC} LDSHAREDFLAGS= -shared # use Sun CC (for a 64-bit kernel, uncomment " -xarch=v9 -xregs=no%appl ") @@ -43,7 +44,7 @@ OBJ= linkage.o tpi.o dlpi.o ioc.o if.o aarp.o ddp.o sock.o rt.o HEADERS= if.h ioc.h rt.h sock.h EXTRA_DIST= ddp.conf Makefile -INCPATH= -I../../include -I../netatalk +INCPATH= -I../../include -I../netatalk -I../.. CFLAGS= ${DEFS} ${OPTOPTS} ${INCPATH} ${KCFLAGS} ALL= ../../libatalk ../../include ../../bin ../../etc ../../man @@ -83,7 +84,7 @@ kernel : FRC FRC: ddp : ${OBJ} - ld -r -o ddp ${OBJ} + ${LD} -r -o ddp ${OBJ} linkage.o : linkage.c ${CC} ${CFLAGS} -DVERSION=\"`cat ../../VERSION`\" -c linkage.c diff --git a/sys/solaris/aarp.c b/sys/solaris/aarp.c index 968a7881..9383ecfb 100644 --- a/sys/solaris/aarp.c +++ b/sys/solaris/aarp.c @@ -1,5 +1,5 @@ /* - * $Id: aarp.c,v 1.2 2001-06-29 14:14:47 rufustfirefly Exp $ + * $Id: aarp.c,v 1.3 2002-01-17 06:13:02 srittau Exp $ */ #ifdef HAVE_CONFIG_H @@ -18,7 +18,11 @@ #include #include +#ifdef STDC_HEADERS +#include +#else #include +#endif #include #include diff --git a/sys/solaris/ddp.c b/sys/solaris/ddp.c index 97dea86f..526c5f89 100644 --- a/sys/solaris/ddp.c +++ b/sys/solaris/ddp.c @@ -1,5 +1,5 @@ /* - * $Id: ddp.c,v 1.2 2001-06-29 14:14:47 rufustfirefly Exp $ + * $Id: ddp.c,v 1.3 2002-01-17 06:13:02 srittau Exp $ */ #ifdef HAVE_CONFIG_H @@ -16,7 +16,11 @@ #include #include +#ifdef STDC_HEADERS +#include +#else #include +#endif #include #include diff --git a/sys/solaris/dlpi.c b/sys/solaris/dlpi.c index e70b465c..2be6de32 100644 --- a/sys/solaris/dlpi.c +++ b/sys/solaris/dlpi.c @@ -1,3 +1,8 @@ +/* $Id: dlpi.c,v 1.2 2002-01-17 06:13:02 srittau Exp $ + */ + +#include + #include #include #include -- 2.39.2