Subject: | cygwin patch |
Attached patch fixes compilation under cygwin
--
http://rurban.xarch.at/
Subject: | cygwin.patch |
--- Win32-File-VersionInfo-0.03/Makefile.PL.orig 2003-10-20 10:53:00.000000000 +0100
+++ Win32-File-VersionInfo-0.03/Makefile.PL 2006-10-03 11:39:17.343750000 +0100
@@ -8,7 +8,9 @@
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'VersionInfo.pm', # retrieve abstract from module
AUTHOR => 'Alexey Toptygin <alexeyt@cpan.org>') : ()),
- 'LIBS' => [''], # e.g., '-lm'
+ ($^O eq 'cygwin' ?
+ ('MYEXTLIB' => "/usr/lib/w32api/libversion.a")
+ : ()),
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
# Insert -I. if you add *.h files later:
'INC' => '', # e.g., '-I/usr/include/other'
--- Win32-File-VersionInfo-0.03/VersionInfo.xs.orig 2004-05-01 17:17:52.000000000 +0100
+++ Win32-File-VersionInfo-0.03/VersionInfo.xs 2006-10-03 11:02:33.328125000 +0100
@@ -1,6 +1,7 @@
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
+#include <windows.h>
#include <winver.h>
MODULE = Win32::File::VersionInfo PACKAGE = Win32::File::VersionInfo