Changeset 2530 for zzuf/trunk


Ignore:
Timestamp:
Jul 15, 2008, 11:34:14 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Add a few _INCLUDE_POSIX_SOURCE defines here and there so that we build out of the box with HP-UX's c99 compiler.
Location:
zzuf/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r2528 r2530  
    5151
    5252AC_MSG_CHECKING(for read() prototype)
    53 AC_TRY_COMPILE([#include <unistd.h>],
     53AC_TRY_COMPILE([#define _INCLUDE_POSIX_SOURCE
     54                #include <unistd.h>],
    5455 [ssize_t read(int fd, void *buf, size_t count);],
    5556 [AC_MSG_RESULT(ssize_t read(... size_t);)
  • zzuf/trunk/src/lib-fd.c

    r2528 r2530  
    2828/* Use this to get proper prototypes on HP-UX systems */
    2929#define _XOPEN_SOURCE_EXTENDED
     30#define _INCLUDE_POSIX_SOURCE
    3031
    3132#if defined HAVE_STDINT_H
  • zzuf/trunk/src/lib-mem.c

    r2523 r2530  
    2525/* Use this to get mmap64() on glibc systems */
    2626#define _LARGEFILE64_SOURCE
     27/* Use this to get ENOMEM on HP-UX */
     28#define _INCLUDE_POSIX_SOURCE
    2729/* Use this to get posix_memalign */
    2830#if defined HAVE_POSIX_MEMALIGN
  • zzuf/trunk/src/lib-signal.c

    r1699 r2530  
    1919#include "config.h"
    2020
    21 /* needed for sighandler_t */
     21/* Needed for sighandler_t on glibc systems */
    2222#define _GNU_SOURCE
     23/* Needed for struct sigaction on HP-UX */
     24#define _INCLUDE_POSIX_SOURCE
    2325
    2426#if defined HAVE_STDINT_H
  • zzuf/trunk/src/zzuf.c

    r2525 r2530  
    1919#include "config.h"
    2020
     21/* Needed for STDERR_FILENO on HP-UX */
     22#define _INCLUDE_POSIX_SOURCE
     23
    2124#if defined HAVE_STDINT_H
    2225#   include <stdint.h>
     
    5053#include <errno.h>
    5154#include <signal.h>
     55#if defined HAVE_SYS_TIME_H
     56#   include <sys/time.h>
     57#endif
    5258#if defined HAVE_SYS_WAIT_H
    5359#   include <sys/wait.h>
  • zzuf/trunk/test/zzcat.c

    r1747 r2530  
    1515#include "config.h"
    1616
    17 #define _LARGEFILE64_SOURCE /* for lseek64() */
     17/* Needed for lseek64() */
     18#define _LARGEFILE64_SOURCE
     19/* Needed for O_RDONLY on HP-UX */
     20#define _INCLUDE_POSIX_SOURCE
    1821
    1922#include <sys/types.h>
Note: See TracChangeset for help on using the changeset viewer.