freebsd-ports/security/libprelude/files/patch-bindings_perl_Prelude.c
Martin Wilke 9ab159127d - Update to 0.9.12
- Updated patch Perl Prelude bindings

Changelog libprelude-0.9.12:
- Correctly pack and unpack float value when sending/receiving.
- More error checking on IDMEF object copy.
- Fix a crash that occured when destroying a copied object.
- Correct registration warning when using AF_UNIX socket.
- Compile on systems lacking poll().
- IpV6 compatibility fixes.
- Fix OS X compilation issues.
- Various portability fixes.

PR:		ports/107009
Submitted by:	Robin Gruyters <r.gruyters@yirdis.nl> (maintainer)
2006-12-21 19:14:35 +00:00

14 lines
556 B
C

--- bindings/perl/Prelude.c.orig Sat Dec 16 10:04:05 2006
+++ bindings/perl/Prelude.c Thu Dec 21 11:02:42 2006
@@ -15,6 +15,11 @@
* declarations/attributes, and other compiler dependent labels.
* ----------------------------------------------------------------------------- */
+/* workaround to build with perl-5.005 */
+#ifndef INT2PTR
+# define INT2PTR(type, pointer) (type)(pointer)
+#endif
+
/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC)