felix / gross

Greylisting of suspicious source (exported from code.google.com/p/gross)
Other
5 stars 0 forks source link

Old linux needed additional #include's to compile #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Compiled grossd on an old version of linux, and it needed some additional 
#include's to compile 
successfully. Seems to work OK.

The following DIFF shows these additional includes used in this case. This was 
just a quick hack 
to make it work, but probably adding these #includes in some suitable place 
would do no harm 
on other platforms. 

diff -r -u tmp/gross-1.0.1/include/stats.h gross-1.0.1/include/stats.h
--- tmp/gross-1.0.1/include/stats.h     Thu May 15 17:21:50 2008
+++ gross-1.0.1/include/stats.h Thu Jun 12 11:00:36 2008
@@ -17,6 +17,7 @@
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
+#include <pthread.h>

 #ifndef STATS_H
 #define STATS_H
diff -r -u tmp/gross-1.0.1/src/check_dnsbl.c gross-1.0.1/src/check_dnsbl.c
--- tmp/gross-1.0.1/src/check_dnsbl.c   Thu May 15 17:21:50 2008
+++ gross-1.0.1/src/check_dnsbl.c       Thu Jun 12 11:03:43 2008
@@ -23,6 +23,9 @@
  *     dnsbl, rhsbl and dnswl
  */

+#include <sys/time.h>
+#include <unistd.h>
+
 #include "common.h"
 #include "check_dnsbl.h"
 #include "srvutils.h"
diff -r -u tmp/gross-1.0.1/src/grosscheck.c gross-1.0.1/src/grosscheck.c
--- tmp/gross-1.0.1/src/grosscheck.c    Thu May 15 17:21:50 2008
+++ gross-1.0.1/src/grosscheck.c        Thu Jun 12 11:03:02 2008
@@ -18,6 +18,9 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */

+#include <sys/time.h>
+#include <unistd.h>
+
 #include <string.h>

 #include "common.h"

Original issue reported on code.google.com by hannu.ar...@gmail.com on 12 Jun 2008 at 9:57

GoogleCodeExporter commented 9 years ago
Type: Annoyance?
Priority: Low/FYI

Original comment by hannu.ar...@gmail.com on 12 Jun 2008 at 9:58