HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #341

Ticket #341: gloox-1.0.patch

File gloox-1.0.patch, 2.1 KB (added by michaelvoliveira, 5 years ago)

A new and improved patch. Now makes reference to cstring too

  • configure.ac

    diff -Naur gloox-1.0/configure.ac gloox-1.0-haiku/configure.ac
    old new  
    298298 
    299299dnl Checks for header files. 
    300300AC_HEADER_STDC 
    301 AC_CHECK_HEADERS(unistd.h strings.h errno.h arpa/nameser.h) 
    302 AC_CHECK_FUNCS(setsockopt,,[AC_CHECK_LIB(socket,setsockopt)]) 
     301AC_CHECK_HEADERS(unistd.h wchar.h string.h cstring.h strings.h errno.h arpa/nameser.h) 
     302AC_CHECK_FUNCS(setsockopt,,[AC_CHECK_LIB(network,setsockopt)]) 
    303303 
    304304dnl Checks for typedefs, structures, and compiler characteristics. 
    305305AC_C_CONST 
  • src/connectiontcpbase.cpp

    diff -Naur gloox-1.0/src/connectiontcpbase.cpp gloox-1.0-haiku/src/connectiontcpbase.cpp
    old new  
    1010  This software is distributed without any warranty. 
    1111*/ 
    1212 
     13#if defined HAVE_STRING_H 
     14#include <string.h> 
     15#endif 
     16  
     17#if defined HAVE_WCHAR_H 
     18#include <wchar.h> 
     19#endif 
    1320 
     21#if __GNUC__ > 3 
     22#include <cstring> 
     23#endif 
    1424 
    1525#include "gloox.h" 
    1626 
  • src/connectiontcpserver.cpp

    diff -Naur gloox-1.0/src/connectiontcpserver.cpp gloox-1.0-haiku/src/connectiontcpserver.cpp
    old new  
    1010  This software is distributed without any warranty. 
    1111*/ 
    1212 
     13#if defined HAVE_STRING_H 
     14#include <string.h> 
     15#endif 
     16  
     17#if defined HAVE_WCHAR_H 
     18#include <wchar.h> 
     19#endif 
    1320 
     21#if __GNUC__ > 3 
     22#include <cstring> 
     23#endif 
    1424 
    1525#include "gloox.h" 
    1626 
  • src/dns.cpp

    diff -Naur gloox-1.0/src/dns.cpp gloox-1.0-haiku/src/dns.cpp
    old new  
    1010  This software is distributed without any warranty. 
    1111*/ 
    1212 
     13#if defined HAVE_STRING_H 
     14#include <string.h> 
     15#endif 
     16  
     17#if defined HAVE_WCHAR_H 
     18#include <wchar.h> 
     19#endif 
     20 
     21#if __GNUC__ > 3 
     22#include <cstring> 
     23#endif 
    1324 
    1425#include "config.h" 
    1526 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/