Группа :: Сети/WWW
Пакет: hammerhead
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: hammerhead-2.1.3-alt-gcc4.4_fix.patch
Скачать
Скачать
Fix errors when building with GCC 4.4
--- ./src/cmdline.cc
+++ ./src/cmdline.cc
@@ -14,6 +14,7 @@
#include <unistd.h>
#include <stdlib.h>
+#include <stdio.h>
#ifdef Linux
#include <getopt.h>
#endif
--- ./src/config.cc
+++ ./src/config.cc
@@ -95,7 +95,7 @@ int ParseIPNumber(const char *a, int *al, int *ah)
if (a[0] == '*') {
*al = 1, *ah = 254;
- } else if ( (dash = strchr(a, '-' )) != NULL) {
+ } else if ( (dash = (char *)strchr(a, '-' )) != NULL) {
*dash = '\0';
*al = atoi(a);
*ah = atoi(dash+1);