From 0542be0d50df8e3c20ebbff07f04a96ae51179b4 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 14 Aug 2003 12:47:35 +0000 Subject: [PATCH] All demos are built now... ex_vote is built multinode using the magic of xpdev. --- src/odoors/GNUmakefile | 5 ++++- src/odoors/ex_vote.c | 12 +++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/odoors/GNUmakefile b/src/odoors/GNUmakefile index 4739ffce6c..949e6b58bd 100644 --- a/src/odoors/GNUmakefile +++ b/src/odoors/GNUmakefile @@ -85,7 +85,7 @@ endif # # Define primary target. # -all: ${LIBDIR}libODoors${SHLIB} ${LIBDIR}libODoors${STATICLIB} ex_diag ex_hello +all: ${LIBDIR}libODoors${SHLIB} ${LIBDIR}libODoors${STATICLIB} ex_chat ex_diag ex_hello ex_music ex_ski ex_vote # #------------------------------------------------------------------------------ # @@ -168,5 +168,8 @@ ex_music: ex_music.c ${LIBDIR}libODoors${SHLIB} ex_ski: ex_ski.c ${LIBDIR}libODoors${SHLIB} $(CC) $(CFLAGS) ex_ski.c -o ex_ski -lODoors +ex_vote: ex_vote.c ${LIBDIR}libODoors${SHLIB} + $(CC) $(CFLAGS) ex_vote.c -o ex_vote ../xpdev/filewrap.c -lODoors -DMULTINODE_AWARE + # #------------------------------------------------------------------------------ diff --git a/src/odoors/ex_vote.c b/src/odoors/ex_vote.c index 6d186462fd..15afb65b6e 100644 --- a/src/odoors/ex_vote.c +++ b/src/odoors/ex_vote.c @@ -36,17 +36,15 @@ #include <time.h> #include <errno.h> #include <ctype.h> -#ifdef MULTINODE_AWARE -#include <io.h> -#include <fcntl.h> -#include <sys/stat.h> -#include <share.h> -#endif /* Include the OpenDoors header file. This line must be done in any program */ /* using OpenDoors. */ -#include "opendoor.h" +#include "OpenDoor.h" +#ifdef MULTINODE_AWARE +#include <filewrap.h> +#endif +#include <genwrap.h> /* Manifest constants used by Vote */ #define NO_QUESTION -1 -- GitLab