Print this page
UNIX98 requires unistd.h for getopt, and requires -D_XOPEN_SOURCE=500.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/sbin/ifparse/ifparse.c
          +++ new/usr/src/cmd/cmd-inet/sbin/ifparse/ifparse.c
↓ open down ↓ 54 lines elided ↑ open up ↑
  55   55   *
  56   56   * No attempt is made to clean up such "pathological" command lines, by
  57   57   * removing redundant "failover" and "-failover" commands.
  58   58   */
  59   59  
  60   60  #include        <sys/types.h>
  61   61  #include        <stdlib.h>
  62   62  #include        <stdio.h>
  63   63  #include        <string.h>
  64   64  #include        <assert.h>
       65 +#include        <unistd.h>
  65   66  
  66   67  /*
  67   68   * Parser flags:
  68   69   *
  69   70   *      PARSEFIXED
  70   71   *              Command should only appear if non-failover commands
  71   72   *              are requested.
  72   73   *      PARSEMOVABLE
  73   74   *              Command should only appear if failover commands are
  74   75   *              requested.
↓ open down ↓ 498 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX