diff options
author | dawes <dawes> | 2003-12-12 03:20:45 +0000 |
---|---|---|
committer | dawes <dawes> | 2003-12-12 03:20:45 +0000 |
commit | 79b2a0173b75d0d07c960360f298ac602b8f23e5 (patch) | |
tree | ba70bf21b01c8875e8c19676099b3125a4b56cc3 | |
parent | d2b3d41a64f8a7fd0c963f389abeb6ddf900f7f1 (diff) |
Fix xdm build on platforms without snprintf() and vsnprintf() (Lindsay Haigh).
-rw-r--r-- | programs/xdm/Imakefile | 18 | ||||
-rw-r--r-- | programs/xdm/dm.h | 7 |
2 files changed, 11 insertions, 14 deletions
diff --git a/programs/xdm/Imakefile b/programs/xdm/Imakefile index 9a08bad35..a8c8363fd 100644 --- a/programs/xdm/Imakefile +++ b/programs/xdm/Imakefile @@ -3,7 +3,7 @@ XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:54:14 cpqbld Exp $ -XCOMM $XFree86: xc/programs/xdm/Imakefile,v 3.62 2003/11/16 16:35:02 herrb Exp $ +XCOMM $XFree86: xc/programs/xdm/Imakefile,v 3.63 2003/11/19 04:44:00 dawes Exp $ #define IHaveSubdirs #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' @@ -162,11 +162,9 @@ SYS_LIBRARIES1 = -lutil PROCTITLE_DEFINES = -DHAS_SETPROCTITLE #endif -#undef HasSnprintf -#define HasSnprintf NO - -#if HasSnprintf -SNPRINTF_DEFINES = -DHAS_SNPRINTF +#if !HasSnprintf +SNPRINTFSRCS = snprintf.c +SNPRINTFOBJS = snprintf.o #endif #if HasGetIfAddrs @@ -202,13 +200,13 @@ LOCAL_LIBRARIES = $(GREETLIBS) $(XMULIB) $(XTOOLLIB) $(XLIB) $(XAUTHLIB) \ netaddr.c reset.c resource.c protodpy.c policy.c \ session.c socket.c streams.c util.c xdmcp.c \ mitauth.c \ - genauth.c access.c choose.c $(PRNGCSRCS) \ + genauth.c access.c choose.c $(SNPRINTFSRCS) $(PRNGCSRCS) \ $(XDMAUTHSRCS) $(RPCSRCS) $(KRB5SRCS) $(GREETSRCS) OBJS1 = auth.o daemon.o server.o dpylist.o dm.o error.o file.o \ netaddr.o reset.o resource.o protodpy.o policy.o \ session.o socket.o streams.o util.o xdmcp.o \ mitauth.o \ - genauth.o access.o choose.o $(PRNGCOBJS) \ + genauth.o access.o choose.o $(SNPRINTFOBJS) $(PRNGCOBJS) \ $(XDMAUTHOBJS) $(RPCOBJS) $(KRB5OBJS) $(GREETOBJS) SRCS2 = xdmshell.c OBJS2 = xdmshell.o @@ -334,6 +332,10 @@ ObjectFromSpecialSource(sessionsh,session,-DUSESHADOW) #endif #endif /* !SharedLibXdmGreet */ +#if !HasSnprintf +LinkSourceFile(snprintf.c,$(LIBSRC)/misc) +#endif + #ifdef IHaveSubdirs MakeSubdirs($(SUBDIRS)) DependSubdirs($(SUBDIRS)) diff --git a/programs/xdm/dm.h b/programs/xdm/dm.h index b17cb8596..9776f23e6 100644 --- a/programs/xdm/dm.h +++ b/programs/xdm/dm.h @@ -26,7 +26,7 @@ other dealings in this Software without prior written authorization from The Open Group. */ -/* $XFree86: xc/programs/xdm/dm.h,v 3.32 2003/09/17 05:48:32 herrb Exp $ */ +/* $XFree86: xc/programs/xdm/dm.h,v 3.33 2003/11/19 03:57:10 dawes Exp $ */ /* * xdm - display manager daemon @@ -510,11 +510,6 @@ extern void ProcessRequestSocket(int fd); #define Jmp_buf sigjmp_buf #endif -#ifndef HAS_SNPRINTF -#include <X11/Xmu/SysUtil.h> -#define snprintf XmuSnprintf -#endif - typedef SIGVAL (*SIGFUNC)(int); SIGVAL (*Signal(int, SIGFUNC Handler))(int); |