1994.08.18 18:36 "libtiff 3.3beta portability improvement", by Tom Lane

Hi Sam,

In testing Bradley's latest XV I had occasion to build libtiff 3.3 beta (not sure which beta, it's the one Bradley included) on HPUX. I would like to suggest that you add -D_HPUX_SOURCE to the CFLAGS definition in Makefile.hpux. This is necessary to build the code under either gcc or HP's cc running in strict ANSI mode. If it is not defined, the system include files don't define anything not covered by ANSI... including u_long and other essential typedefs.

                        regards, tom lane

$ diff -c Makefile.hpux Makefile
*** Makefile.hpux       Sat Aug 13 01:46:48 1994
--- Makefile    Thu Aug 18 14:18:12 1994
***************
*** 34,40 ****
  CONF_LIBRARY=\
        ${NULL}
  COPTS=        -O
! CFLAGS=       ${COPTS} -Dhpux ${IPATH} ${CONF_LIBRARY}
  #
  INCS= tiff.h tiffio.h
  SRCS= tif_fax3.c \
--- 34,40 ----
  CONF_LIBRARY=\
        ${NULL}
  COPTS=        -O
! CFLAGS=       ${COPTS} -Dhpux -D_HPUX_SOURCE ${IPATH} ${CONF_LIBRARY}
  #
  INCS= tiff.h tiffio.h
  SRCS= tif_fax3.c \