X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.cxx;h=0f121c26635a1f948b7e92ff4a8b3b7c4abc7cee;hb=53d8646509a5a15166422a0d41533be61670c6aa;hp=8a8b0df534db607d7fdece401f9e7658de4c6da0;hpb=69b082c0e06ced34232a2856be41da0f47217032;p=gdcm.git diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 8a8b0df5..0f121c26 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/17 16:37:00 $ - Version: $Revision: 1.102 $ + Date: $Date: 2005/01/17 17:26:55 $ + Version: $Revision: 1.106 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -52,9 +52,6 @@ // 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 @@ -75,8 +72,7 @@ #ifdef CMAKE_HAVE_NET_IF_DL_H #include #endif -#ifdef __sun - //#if defined(CMAKE_HAVE_NET_IF_ARP_H) && defined(__sun) +#if defined(CMAKE_HAVE_NET_IF_ARP_H) && defined(__sun) // This is absolutely necesseray on SunOS #include #endif @@ -438,7 +434,8 @@ int GetMacAddrSys ( unsigned char *addr ) ret = m_Query(ASN_RFC1157_GETNEXTREQUEST, &varBindList, &errorStatus, &errorIndex); // printf("# of adapters in this system : %i\n", -// varBind[0].value.asnValue.number); varBindList.len = 2; +// varBind[0].value.asnValue.number); + varBindList.len = 2; // Copy in the OID of ifType, the type of interface SNMP_oidcpy(&varBind[0].name, &MIB_ifEntryType); @@ -640,6 +637,9 @@ int GetMacAddrSys ( unsigned char *addr ) } close(sd); #endif + /* Not implemented platforms */ + perror("There was a configuration problem on your plateform"); + memset(addr,0,6); return -1; #endif //__sun }