From 225abebe11de04f8fc4e098bba5966be6d916934 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Mon, 7 Mar 2011 16:14:37 +0000 Subject: [PATCH] Fix the build (porting to EMI, example and clean stage). --- org.glite.px.proxyrenewal/Makefile | 2 +- org.glite.px.proxyrenewal/examples/renew_core.c | 4 ++++ org.glite.px.proxyrenewal/src/renewd_locl.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/org.glite.px.proxyrenewal/Makefile b/org.glite.px.proxyrenewal/Makefile index ffc5757..f141a67 100644 --- a/org.glite.px.proxyrenewal/Makefile +++ b/org.glite.px.proxyrenewal/Makefile @@ -153,7 +153,7 @@ ${THRLIBOBJ} ${LIB_CORE_THR_OBJS}: %.thr.o: %.c ${COMPILE} ${MYPROXY_THR_INC} ${GLOBUS_THR_INC} -o $@ -c $< %.o: %.c - ${COMPILE} ${MYPROXY_CFLAGS} ${GLOBUS_GSSAPI_GSI_CFLAGS} -c $< + ${COMPILE} ${MYPROXY_CFLAGS} ${GLOBUS_GSSAPI_GSI_CFLAGS} -DLOCAL_PX_COMPILE=1 -c $< ${EXAMPLES}: %: %.o ${LINK} -o $@ $< ${default_libcore} diff --git a/org.glite.px.proxyrenewal/examples/renew_core.c b/org.glite.px.proxyrenewal/examples/renew_core.c index e0ba537..a446830 100644 --- a/org.glite.px.proxyrenewal/examples/renew_core.c +++ b/org.glite.px.proxyrenewal/examples/renew_core.c @@ -19,7 +19,11 @@ #include #include #include +#ifdef LOCAL_PX_COMPILE +#include "renewal_core.h" +#else #include +#endif static struct option const long_options[] = { { "server", required_argument, 0, 's' }, diff --git a/org.glite.px.proxyrenewal/src/renewd_locl.h b/org.glite.px.proxyrenewal/src/renewd_locl.h index bf0bff5..f9ce31e 100644 --- a/org.glite.px.proxyrenewal/src/renewd_locl.h +++ b/org.glite.px.proxyrenewal/src/renewd_locl.h @@ -25,7 +25,7 @@ #include #include -#include +#include #include "renewal.h" #include "renewal_core.h" -- 1.8.2.3