From 3ce11137742b13ff30a824dc253beb0761484133 Mon Sep 17 00:00:00 2001 From: malaterre Date: Sat, 15 Jan 2005 22:19:10 +0000 Subject: [PATCH] BUG: on MacOSX CHECK_INCLUDE_FILES is not able to find some include files. Therfore we explicitely have to include them --- src/gdcmUtil.cxx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 6784ef1d..559b21ee 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/01/15 21:45:48 $ - Version: $Revision: 1.94 $ + Date: $Date: 2005/01/15 22:19:10 $ + Version: $Revision: 1.95 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -62,6 +62,14 @@ #include #endif //__sun +// How do I do that in CMake ? +#ifdef __APPLE__ +#define HAVE_SA_LEN +#define CMAKE_HAVE_NET_IF_DL_H +#define CMAKE_HAVE_NETINET_IN_H +#define CMAKE_HAVE_NET_IF_H +#endif //APPLE + #ifdef CMAKE_HAVE_SYS_IOCTL_H #include // For SIOCGIFCONF on Linux #endif @@ -81,10 +89,6 @@ #include #endif -// How do I do that in CMake ? -#ifdef __APPLE__ -#define HAVE_SA_LEN -#endif //APPLE namespace gdcm { -- 2.48.1