inn-2.2.2 on AIX 4.1.5

James Carlson carlson at workingcode.com
Thu Apr 13 12:36:12 UTC 2000


The attached diffs correct build problems on AIX 4.1.5 and Perl 5.6.0.
(Oddly, the "configure" script was already testing for sys/select.h,
but it wasn't being used.)

include/clibrary.h.in:
	- If the platform has sys/select.h, then include it.  AIX
	  defines fd_set here.

include/config.h.in:
	- Added switch for sys/select.h.

include/ppport.h:
	- Perl 5.6.0 uses PERL_VERSION rather than PERL_PATCHLEVEL.
	- Fixed misuse of old defines when testing for newCONSTSUB.

-- 
James Carlson                                  <carlson at workingcode.com>
"PPP Design and Debugging" --- http://people.ne.mediaone.net/carlson/ppp


-- Attached file included as plaintext by Listar --
-- Desc: inn-2.2.2 patch

diff -rcp ../inn-2.2.2-orig/include/clibrary.h.in ./include/clibrary.h.in
*** ../inn-2.2.2-orig/include/clibrary.h.in	Mon Dec 13 08:18:37 1999
--- ./include/clibrary.h.in	Wed Apr 12 19:47:57 2000
***************
*** 16,21 ****
--- 16,25 ----
  # include <vfork.h>
  #endif	/* defined(HAVE_VFORK_H) */
  
+ #if defined(HAVE_SYS_SELECT_H)
+ # include <sys/select.h>
+ #endif /* defined(HAVE_SYS_SELECT_H) */
+ 
  #if ! defined (DO_NEED_BOOL) && ! defined (DONT_NEED_BOOL)
  #define DO_NEED_BOOL 1
  #endif
diff -rcp ../inn-2.2.2-orig/include/config.h.in ./include/config.h.in
*** ../inn-2.2.2-orig/include/config.h.in	Mon Dec 13 08:18:37 1999
--- ./include/config.h.in	Wed Apr 12 19:54:20 2000
***************
*** 128,133 ****
--- 128,136 ----
  /* Define if you have sys/sysinfo.h */
  #undef HAVE_SYS_SYSINFO_H
  
+ /* Define if you have sys/select.h */
+ #undef HAVE_SYS_SELECT_H
+ 
  /* if I understand how configure does this, if 'const' isn't valid, 
   * it will remove the 'const' declarations from the typedef's below 
   * <scrappy at hub.org 
diff -rcp ../inn-2.2.2-orig/include/ppport.h ./include/ppport.h
*** ../inn-2.2.2-orig/include/ppport.h	Mon Dec 13 08:18:37 1999
--- ./include/ppport.h	Thu Apr 13 07:28:33 2000
*************** __DATA__
*** 145,152 ****
--- 145,156 ----
  #	endif
  #endif
  #ifndef PERL_PATCHLEVEL
+ #   ifdef PERL_VERSION
+ #	define PERL_PATCHLEVEL PERL_VERSION
+ #   else
  #	define PERL_PATCHLEVEL PATCHLEVEL
  #	define PERL_SUBVERSION SUBVERSION
+ #   endif
  #endif
  
  #ifndef ERRSV
*************** __DATA__
*** 182,188 ****
  /* Provide: newCONSTSUB */
  
  /* newCONSTSUB from IO.xs is in the core starting with 5.004_63 */
! #if (PATCHLEVEL < 4) || ((PATCHLEVEL == 4) && (SUBVERSION < 63))
  
  /* Prototype */
  #if !defined(NEED_newCONSTSUB_GLOBAL)
--- 186,192 ----
  /* Provide: newCONSTSUB */
  
  /* newCONSTSUB from IO.xs is in the core starting with 5.004_63 */
! #if (PERL_PATCHLEVEL < 4) || ((PERL_PATCHLEVEL == 4) && (PERL_SUBVERSION < 63))
  
  /* Prototype */
  #if !defined(NEED_newCONSTSUB_GLOBAL)




More information about the inn-patches mailing list