On Tue, 31 Oct 2000, Peter J. Farley III wrote:
> At 09:15 PM 10/31/00 -0500, Andy Dougherty wrote:
> <Snipped>
> >I'll try to get around to handling the Configure end with at least a
> >dummy test in the next couple of days. Feel free to remind me if I
> >don't actually get around to it.
This patch simply changes pp_sys.c to check for FCNTL_CAN_LOCK and gives
default values of 'undef' to the win32 folks. (I'll send the metaconfig
unit separately, since all the documentation and sample config.sh files
are auto-generated.)
I didn't touch the VMS or DOS/DJGPP stuff, but since they don't even know
about FCNTL_CAN_LOCK, they won't errantly try to set it.
> I guess what I'm trying to say is, don't worry *too* much about
> including DOS/DJGPP in the Configure changes, unless it turns out to be
> easy to do.
Let me know what happens after Jarkko integrates it all.
--
Andy Dougherty [EMAIL PROTECTED]
Dept. of Physics
Lafayette College, Easton PA 18042
diff -r -u perl-p4/pp_sys.c perl-andy/pp_sys.c
--- perl-p4/pp_sys.c Thu Oct 26 10:52:39 2000
+++ perl-andy/pp_sys.c Fri Nov 3 14:35:02 2000
@@ -150,7 +150,7 @@
# include <fcntl.h>
# endif
-# if defined(HAS_FCNTL) && defined(F_SETLK) && defined (F_SETLKW)
+# if defined(HAS_FCNTL) && defined(FCNTL_CAN_LOCK)
# define FLOCK fcntl_emulate_flock
# define FCNTL_EMULATE_FLOCK
# else /* no flock() or fcntl(F_SETLK,...) */
diff -r -u perl-p4/win32/config.bc perl-andy/win32/config.bc
--- perl-p4/win32/config.bc Thu Oct 26 10:53:21 2000
+++ perl-andy/win32/config.bc Fri Nov 3 15:18:38 2000
@@ -129,6 +129,7 @@
d_fchmod='undef'
d_fchown='undef'
d_fcntl='undef'
+d_fcntl_can_lock='undef'
d_fd_macros='define'
d_fd_set='define'
d_fds_bits='define'
diff -r -u perl-p4/win32/config.gc perl-andy/win32/config.gc
--- perl-p4/win32/config.gc Thu Oct 26 10:53:22 2000
+++ perl-andy/win32/config.gc Fri Nov 3 15:18:57 2000
@@ -129,6 +129,7 @@
d_fchmod='undef'
d_fchown='undef'
d_fcntl='undef'
+d_fcntl_can_lock='undef'
d_fd_macros='define'
d_fd_set='define'
d_fds_bits='define'
diff -r -u perl-p4/win32/config.vc perl-andy/win32/config.vc
--- perl-p4/win32/config.vc Thu Oct 26 10:53:22 2000
+++ perl-andy/win32/config.vc Fri Nov 3 15:19:02 2000
@@ -129,6 +129,7 @@
d_fchmod='undef'
d_fchown='undef'
d_fcntl='undef'
+d_fcntl_can_lock='undef'
d_fd_macros='define'
d_fd_set='define'
d_fds_bits='define'