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

Context Navigation

  • Back to Ticket #632

Ticket #632: privoxy-3.0.19.3.patch

File privoxy-3.0.19.3.patch, 2.3 KB (added by simonsouth, 3 years ago)
  • configure.in

    diff -Naur privoxy-3.0.19-stable/configure.in privoxy-3.0.19-stable-haiku/configure.in
    old new  
    160160dnl ================================================================= 
    161161 
    162162 
    163 if test "$EMXOS2" = yes; then 
     163if test "$EMXOS2" = yes || test "$host_os" = haiku; then 
    164164  echo "Skipping user and group validity stuff."; 
    165165 
    166166else 
    … …  
    677677AC_SUBST(AMIGAOS_ONLY) 
    678678 
    679679dnl ================================================================= 
     680dnl Haiku specific 
     681dnl ================================================================= 
     682 
     683if test "$host_os" = haiku; then 
     684  # Omit the "-pthread" flag to gcc, even when building with gcc 2.95 
     685  SPECIAL_CFLAGS= 
     686 
     687  # Haiku's pthreads implementation exists in its system library, 
     688  # libroot, not in a separate pthreads library 
     689  PTHREAD_LIB= 
     690 
     691  # Networking code exists in libnetwork 
     692  SOCKET_LIB=-lnetwork 
     693 
     694  # Search Haiku's common-library folder to find its pcre and 
     695  # pcreposix libraries 
     696  LIBS="-L/boot/common/lib $LIBS" 
     697fi 
     698 
     699dnl ================================================================= 
    680700dnl Check for standard compiler stuff 
    681701dnl ================================================================= 
    682702 
  • privoxy-3.0.

    diff -Naur privoxy-3.0.19-stable/filters.c privoxy-3.0.19-stable-haiku/filters.c
    old new  
    10951095   char *new_url = NULL; 
    10961096   char *tmp; 
    10971097 
     1098   char *url_segment = NULL; 
     1099   char **url_segments; 
     1100   size_t max_segments; 
     1101   int segments; 
     1102 
    10981103   assert(subject); 
    10991104   assert(redirect_mode); 
    11001105 
    … …  
    11171122       * and look for a URL in the decoded result. 
    11181123       * Stop the search after the first match. 
    11191124       */ 
    1120       char *url_segment = NULL; 
     1125 
    11211126      /* 
    11221127       * XXX: This estimate is guaranteed to be high enough as we 
    11231128       *      let ssplit() ignore empty fields, but also a bit wasteful. 
    11241129       */ 
    1125       size_t max_segments = strlen(subject) / 2; 
    1126       char **url_segments = malloc(max_segments * sizeof(char *)); 
    1127       int segments; 
     1130      max_segments = strlen(subject) / 2; 
     1131      url_segments = malloc(max_segments * sizeof(char *)); 
    11281132 
    11291133      if (NULL == url_segments) 
    11301134      { 

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/