From 62520c913c464c89e94916880c0661ff91051cc2 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Thu, 21 May 1998 01:37:04 +0000 Subject: [win32] fix POSIX for mingw32 p4raw-id: //depot/win32/perl@1022 --- ext/POSIX/POSIX.xs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ext/POSIX') diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 1dba9a61f8..97404b8426 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -108,6 +108,10 @@ # ifdef _MSC_VER # define mode_t short # endif +# ifdef __MINGW32__ +# define mode_t short +# define tzset() not_here("tzset") +# endif # define sigaction(a,b,c) not_here("sigaction") # define sigpending(a) not_here("sigpending") # define sigprocmask(a,b,c) not_here("sigprocmask") @@ -255,13 +259,13 @@ unsigned long strtoul _((const char *, char **, int)); #define localeconv() not_here("localeconv") #endif -#ifndef WIN32 #ifdef HAS_TZNAME +# ifndef WIN32 extern char *tzname[]; +# endif #else char *tzname[] = { "" , "" }; #endif -#endif /* XXX struct tm on some systems (SunOS4/BSD) contains extra (non POSIX) * fields for which we don't have Configure support yet: -- cgit v1.2.1 From f6c6487a7fbe3f34af46c7923fc905a118aaf302 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Thu, 21 May 1998 21:11:12 +0000 Subject: [win32] more mingw32 tweaks p4raw-id: //depot/win32/perl@1024 --- ext/POSIX/POSIX.xs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ext/POSIX') diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 97404b8426..6b9611129f 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -110,7 +110,12 @@ # endif # ifdef __MINGW32__ # define mode_t short -# define tzset() not_here("tzset") +# ifndef tzset +# define tzset() not_here("tzset") +# endif +# ifndef _POSIX_OPEN_MAX +# define _POSIX_OPEN_MAX FOPEN_MAX /* XXX bogus ? */ +# endif # endif # define sigaction(a,b,c) not_here("sigaction") # define sigpending(a) not_here("sigpending") -- cgit v1.2.1 From bd89102fe7784367e3eeddc7cefae29defae903a Mon Sep 17 00:00:00 2001 From: Andy Dougherty Date: Thu, 28 May 1998 09:27:25 -0400 Subject: [PATCH 5.004_65] Config_65-02-03.diff: SunOS and Solaris hints Date: Thu, 28 May 1998 13:27:25 -0400 (EDT) Subject: [PATCH 5.004_65] Config_65-03-04.diff: semctl probing Date: Thu, 28 May 1998 13:28:21 -0400 (EDT) p4raw-id: //depot/perl@1047 --- ext/POSIX/hints/sunos_4.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/POSIX') diff --git a/ext/POSIX/hints/sunos_4.pl b/ext/POSIX/hints/sunos_4.pl index 59b45bc4f2..32b3558a5e 100644 --- a/ext/POSIX/hints/sunos_4.pl +++ b/ext/POSIX/hints/sunos_4.pl @@ -3,4 +3,8 @@ # This state of affairs also persists in glibc2, found # on linux systems running libc6. # XXX A Configure test is needed. -$self->{CCFLAGS} = $Config{ccflags} . ' -DSTRUCT_TM_HASZONE' ; + +# Although is inappropriate in general for SunOS, we need it +# in POSIX.xs to get the correct prototype for ttyname(). + +$self->{CCFLAGS} = $Config{ccflags} . ' -DSTRUCT_TM_HASZONE -DI_UNISTD' ; -- cgit v1.2.1 From 1d2dff63f533f62282a700198c67c41dcb6ad6df Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Fri, 29 May 1998 02:31:44 +0000 Subject: [win32] merge changes#1014,1038 from maintbranch p4raw-link: @1038 on //depot/maint-5.004/perl: c3cf4c2be38f0215f451c3dd6cb13089e5f2329f p4raw-link: @1014 on //depot/maint-5.004/perl: d14230f9721c31ac6e9e2fdb706c7fc95118b4e6 p4raw-id: //depot/win32/perl@1052 --- ext/POSIX/POSIX.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/POSIX') diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 6b9611129f..661592e7fe 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -44,7 +44,7 @@ #include #include #ifdef I_UNISTD -#include /* see hints/sunos_4_1.sh */ +#include #endif #include -- cgit v1.2.1 From 17c3b45099488fbc22dc1d4e0e4600c17bc12645 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Fri, 29 May 1998 05:01:54 +0000 Subject: [win32] misc changes - remove code that works around lack of I_STDARG (we're a happy ANSI family) - leave dump_foo() stubs when not -DDEBUGGING for consistent symbol exports p4raw-id: //depot/win32/perl@1053 --- ext/POSIX/POSIX.xs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ext/POSIX') diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 661592e7fe..239f979229 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -23,9 +23,8 @@ #endif #include #include -#ifdef I_STDARG #include -#endif + #ifdef I_STDDEF #include #endif @@ -99,7 +98,7 @@ #if defined (WIN32) # undef mkfifo /* #defined in perl.h */ # define mkfifo(a,b) not_here("mkfifo") -# define ttyname(a) not_here("ttyname") +# define ttyname(a) (char*)not_here("ttyname") # define sigset_t long # define pid_t long # ifdef __BORLANDC__ -- cgit v1.2.1