Print this page
Update to 1.12.3.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mandoc/config.h
          +++ new/usr/src/cmd/mandoc/config.h
   1    1  #ifndef MANDOC_CONFIG_H
   2    2  #define MANDOC_CONFIG_H
   3    3  
   4    4  #if defined(__linux__) || defined(__MINT__)
   5    5  # define _GNU_SOURCE /* strptime(), getsubopt() */
   6    6  #endif
   7    7  
   8    8  #include <stdio.h>
   9    9  
  10      -#define HAVE_STRPTIME
  11      -#define HAVE_GETSUBOPT
  12      -#define HAVE_STRLCAT
  13      -#define HAVE_STRLCPY
       10 +#define VERSION "1.12.3"
  14   11  
  15   12  #include <sys/types.h>
  16   13  
  17   14  #if !defined(__BEGIN_DECLS)
  18   15  #  ifdef __cplusplus
  19   16  #  define       __BEGIN_DECLS           extern "C" {
  20   17  #  else
  21   18  #  define       __BEGIN_DECLS
  22   19  #  endif
  23   20  #endif
  24   21  #if !defined(__END_DECLS)
  25   22  #  ifdef __cplusplus
  26   23  #  define       __END_DECLS             }
  27   24  #  else
  28   25  #  define       __END_DECLS
  29   26  #  endif
  30   27  #endif
  31   28  
  32      -#if defined(__APPLE__)
  33      -# define htobe32(x) OSSwapHostToBigInt32(x)
  34      -# define betoh32(x) OSSwapBigToHostInt32(x)
  35      -# define htobe64(x) OSSwapHostToBigInt64(x)
  36      -# define betoh64(x) OSSwapBigToHostInt64(x)
  37      -#elif defined(__linux__)
  38      -# define betoh32(x) be32toh(x)
  39      -# define betoh64(x) be64toh(x)
       29 +#ifndef HAVE_BETOH64
       30 +#  if defined(__APPLE__)
       31 +#    define betoh64(x) OSSwapBigToHostInt64(x)
       32 +#    define htobe64(x) OSSwapHostToBigInt64(x)
       33 +#  elif defined(__sun)
       34 +#    define betoh64(x) BE_64(x)
       35 +#    define htobe64(x) BE_64(x)
       36 +#  else
       37 +#    define betoh64(x) be64toh(x)
       38 +#  endif
  40   39  #endif
  41   40  
  42   41  #ifndef HAVE_STRLCAT
  43   42  extern  size_t    strlcat(char *, const char *, size_t);
  44   43  #endif
  45   44  #ifndef HAVE_STRLCPY
  46   45  extern  size_t    strlcpy(char *, const char *, size_t);
  47   46  #endif
  48   47  #ifndef HAVE_GETSUBOPT
  49   48  extern  int       getsubopt(char **, char * const *, char **);
  50   49  extern  char     *suboptarg;
  51   50  #endif
  52   51  #ifndef HAVE_FGETLN
  53   52  extern  char     *fgetln(FILE *, size_t *);
  54   53  #endif
  55   54  
  56   55  #endif /* MANDOC_CONFIG_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX