]> Creatis software - gdcm.git/commitdiff
BUG: on MacOSX CHECK_INCLUDE_FILES is not able to find some include files. Therfore...
authormalaterre <malaterre>
Sat, 15 Jan 2005 22:19:10 +0000 (22:19 +0000)
committermalaterre <malaterre>
Sat, 15 Jan 2005 22:19:10 +0000 (22:19 +0000)
src/gdcmUtil.cxx

index 6784ef1d24a8511c915854fe07a614cd013b8af2..559b21ee0be8ab6ab5fc2f11f28799d73b1844c3 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.cxx,v $
   Language:  C++
   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
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #include <sys/file.h>
 #endif //__sun
 
 #include <sys/file.h>
 #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 <sys/ioctl.h>  // For SIOCGIFCONF on Linux
 #endif
 #ifdef CMAKE_HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>  // For SIOCGIFCONF on Linux
 #endif
 #include <net/if_dl.h>
 #endif
 
 #include <net/if_dl.h>
 #endif
 
-// How do I do that in CMake ?
-#ifdef __APPLE__
-#define HAVE_SA_LEN
-#endif //APPLE
 
 namespace gdcm 
 {
 
 namespace gdcm 
 {