From 39667dbb0160d395fb20eb53a1b4e995e2e623dd Mon Sep 17 00:00:00 2001 From: Arlin Davis Date: Tue, 16 Oct 2007 14:23:17 -0700 Subject: [PATCH] Fix dtest to build properly with extensions. Modify dat.h dat_event to include event_extension_data[8]. Extend struct dat_event outside of extension build switch to enable non-extended applications to work with extended libraries. Otherwise, there is a potential for the event callee to write back too much event data and exceed callers non-extended event buffer. Signed-off by: Arlin Davis --- dat/include/dat/dat.h | 2 -- test/dtest/Makefile.am | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dat/include/dat/dat.h b/dat/include/dat/dat.h index a1868c6..7fa543b 100755 --- a/dat/include/dat/dat.h +++ b/dat/include/dat/dat.h @@ -944,9 +944,7 @@ typedef struct dat_event DAT_EVENT_NUMBER event_number; DAT_EVD_HANDLE evd_handle; DAT_EVENT_DATA event_data; -#ifdef DAT_EXTENSIONS DAT_UINT64 event_extension_data[8]; -#endif /* DAT_EXTENSIONS */ } DAT_EVENT; /* Provider/registration info */ diff --git a/test/dtest/Makefile.am b/test/dtest/Makefile.am index 9b8f62f..ebc77ee 100755 --- a/test/dtest/Makefile.am +++ b/test/dtest/Makefile.am @@ -4,6 +4,7 @@ dtest_SOURCES = dtest.c if EXT_TYPE_IB bin_PROGRAMS += dtestx dtestx_SOURCES = dtestx.c +dtest_CFLAGS = -DDAT_EXTENSIONS dtestx_CFLAGS = -DDAT_EXTENSIONS dtestx_LDADD = $(srcdir)/../../dat/udat/libdat.la endif -- 2.46.0