comment out a few includes and defines at the beginning of the code.
# Interface to Perl from OCaml.
# Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.26 2004-12-01 12:41:29 rich Exp $
+# $Id: Makefile,v 1.27 2004-12-11 13:38:32 rich Exp $
include Makefile.config
SED := sed
-# XXX Hack required by ocamlopt, and sometimes ocamlc.
-# To work out what this should be, try:
-# `perl -MExtUtils::Embed -e ldopts'
-DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
-
OCAMLDOCFLAGS := -html -stars -sort $(OCAMLCINCS)
WRAPPERS := \
# perl4caml configuration -*- Makefile -*-
-# $Id: Makefile.config,v 1.18 2004-11-25 21:32:28 rich Exp $
+# $Id: Makefile.config,v 1.19 2004-12-11 13:38:32 rich Exp $
# PERLINCDIR
# Directory containing the Perl include files, eg. <EXTERN.h>.
EXTRA_CFLAGS :=
#EXTRA_CFLAGS := -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1
+#EXTRA_CFLAGS := -I/Users/rich/OCaml/lib/ocaml/std-lib -DPERL4CAML_NO_CRYPT_H \
+ -DPERL4CAML_NO_OFF64_T
+
+# DYNALOADER_HACK
+# XXX Hack required by ocamlopt, and sometimes ocamlc.
+# To work out what this should be, try:
+# `perl -MExtUtils::Embed -e ldopts'
+
+DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
+#DYNALOADER_HACK := /System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
# PACKAGE and VERSION
/* Interface to Perl from OCaml.
* Copyright (C) 2003 Merjis Ltd.
- * $Id: perl_c.c,v 1.17 2004-11-25 22:16:17 rich Exp $
+ * $Id: perl_c.c,v 1.18 2004-12-11 13:38:32 rich Exp $
*/
#include <stdio.h>
#include <caml/memory.h>
#include <caml/mlvalues.h>
+#ifndef PERL4CAML_NO_OFF64_T
/* XXX This was required to avoid an error on my machine when loading the Perl
* headers. Not clear why this is missing.
*/
#define off64_t __off64_t
+#endif
+#ifndef PERL4CAML_NO_CRYPT_H
/* XXX This is required by Perl >= 5.8.2. */
#define __USE_GNU
#include <crypt.h>
+#endif
#include <EXTERN.h>
#include <perl.h>