1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/security/doscan/files/freebsd4.diff
Kirill Ponomarev 490282cb9d - Update to version 0.2.6
- Fix build on 4.x

PR:		ports/63269
Submitted by:	maintainer
2004-02-23 16:40:57 +00:00

12 lines
378 B
Diff

--- src/results.cc.orig Mon Feb 23 15:15:59 2004
+++ src/results.cc Mon Feb 23 15:30:54 2004
@@ -427,7 +427,7 @@
#ifdef GETHOSTBYADDR_ACCEPTS_CHAR
he = gethostbyaddr (reinterpret_cast<char*>(&in), sizeof (in), AF_INET);
#else
-#error Type of first argument to gethostbyaddr() is not known.
+ he = gethostbyaddr ((const char*)(&in), sizeof (in), AF_INET);
#endif
#endif