1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtpdmd: make it build

This commit is contained in:
Jon Trulson 2019-11-22 13:13:41 -07:00
parent a63016758e
commit 89f91f0091
3 changed files with 10 additions and 6 deletions

View file

@ -285,6 +285,7 @@ dnl Setup XTOOLLIB - we do it in this specific order to avoid ordering
dnl issues
XTOOLLIB="$X_LIBS"
AC_CHECK_LIB(X11, XOpenDisplay, [XTOOLLIB="-lX11"])
AC_CHECK_LIB(Xau, XauReadAuth, [XTOOLLIB="-lXau ${XTOOLLIB}"])
AC_CHECK_LIB(Xt, XtInitialize, [XTOOLLIB="-lXt ${XTOOLLIB}"])
AC_CHECK_LIB(ICE, IceCloseConnection, [XTOOLLIB="-lICE ${XTOOLLIB}"])
AC_CHECK_LIB(SM, SmcOpenConnection, [XTOOLLIB="-lSM ${XTOOLLIB}"])
@ -460,6 +461,8 @@ programs/dtpdm/Makefile
programs/dtsr/Makefile
programs/dtpdmd/Makefile
])
AC_OUTPUT

View file

@ -2,14 +2,13 @@ MAINTAINERCLEANFILES = Makefile.in
bin_PROGRAMS = dtpdmd
dtpdmd_CFLAGS = -DCDE_INSTALLATION_TOP='"'${prefix}'"'
dtpdmd_CFLAGS = -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
dtpdmd_LDADD = $(XTOOLLIB) ${X_LIBS}
dtpdmd_LDADD = $(XTOOLLIB)
if SOLARIS
dtpdmd_LDADD += -lm -ldl
dtpdmd_LDADD += -ldl
endif
dtpdmd_SOURCES = dispatch.c dtpdmd.c mailbox.c \
manager.c records.c setup.c \
util.c
dtpdmd_SOURCES = dispatch.c dtpdmd.c mailbox.c manager.c records.c \
nlmsg.c setup.c util.c dtpdmdP.h nlmsg.h

View file

@ -34,10 +34,12 @@
*****************************************************************************/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <signal.h>
#include <time.h>
#include <setjmp.h>
#include <sys/wait.h>
#include <sys/stat.h>