diff -Naur privoxy-3.0.19-stable/configure.in privoxy-3.0.19-stable-haiku/configure.in
|
old
|
new
|
|
| 160 | 160 | dnl ================================================================= |
| 161 | 161 | |
| 162 | 162 | |
| 163 | | if test "$EMXOS2" = yes; then |
| | 163 | if test "$EMXOS2" = yes || test "$host_os" = haiku; then |
| 164 | 164 | echo "Skipping user and group validity stuff."; |
| 165 | 165 | |
| 166 | 166 | else |
| … |
… |
|
| 677 | 677 | AC_SUBST(AMIGAOS_ONLY) |
| 678 | 678 | |
| 679 | 679 | dnl ================================================================= |
| | 680 | dnl Haiku specific |
| | 681 | dnl ================================================================= |
| | 682 | |
| | 683 | if 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" |
| | 697 | fi |
| | 698 | |
| | 699 | dnl ================================================================= |
| 680 | 700 | dnl Check for standard compiler stuff |
| 681 | 701 | dnl ================================================================= |
| 682 | 702 | |
diff -Naur privoxy-3.0.19-stable/filters.c privoxy-3.0.19-stable-haiku/filters.c
|
old
|
new
|
|
| 1095 | 1095 | char *new_url = NULL; |
| 1096 | 1096 | char *tmp; |
| 1097 | 1097 | |
| | 1098 | char *url_segment = NULL; |
| | 1099 | char **url_segments; |
| | 1100 | size_t max_segments; |
| | 1101 | int segments; |
| | 1102 | |
| 1098 | 1103 | assert(subject); |
| 1099 | 1104 | assert(redirect_mode); |
| 1100 | 1105 | |
| … |
… |
|
| 1117 | 1122 | * and look for a URL in the decoded result. |
| 1118 | 1123 | * Stop the search after the first match. |
| 1119 | 1124 | */ |
| 1120 | | char *url_segment = NULL; |
| | 1125 | |
| 1121 | 1126 | /* |
| 1122 | 1127 | * XXX: This estimate is guaranteed to be high enough as we |
| 1123 | 1128 | * let ssplit() ignore empty fields, but also a bit wasteful. |
| 1124 | 1129 | */ |
| 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 *)); |
| 1128 | 1132 | |
| 1129 | 1133 | if (NULL == url_segments) |
| 1130 | 1134 | { |