]> Creatis software - gdcm.git/commitdiff
BUG: Could not build on Sun + gcc 2.95
authormalaterre <malaterre>
Mon, 28 Feb 2005 18:56:29 +0000 (18:56 +0000)
committermalaterre <malaterre>
Mon, 28 Feb 2005 18:56:29 +0000 (18:56 +0000)
src/gdcmUtil.cxx

index c39885a326e3a0eb89fd2ea012c0487915a6318a..8f18840c2dce663b03a3d80a38cd3dc926a26d96 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/17 10:56:20 $
-  Version:   $Revision: 1.146 $
+  Date:      $Date: 2005/02/28 18:56:29 $
+  Version:   $Revision: 1.147 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -577,7 +577,7 @@ int GetMacAddrSys ( unsigned char *addr )
 
 
 // implementation for POSIX system
-#ifdef __sun
+#if defined(CMAKE_HAVE_NET_IF_ARP_H) && defined(__sun)
    //The POSIX version is broken anyway on Solaris, plus would require full
    //root power
    struct  arpreq          parpreq;