Skip to content

Commit

Permalink
Eliminate sim_client include of getopt.h
Browse files Browse the repository at this point in the history
Commit 9139a60 added an unconditional
include of getopt.h, which is non-portable (it isn't present on HP-UX)
and unecessary for getopt().  The same commit also disabled the
include of unistd.h (which is necessary for getopt()), as sim_client
no longer indirectly includes autoconf.  Make the unistd.h include
unconditional and remove the getopt.h include.

[ghudson@mit.edu: edited commit message]

ticket: 9102 (new)
tags: pullup
target_version: 1.21-next
  • Loading branch information
michael-o authored and greghudson committed Aug 22, 2023
1 parent ae704da commit a6abaaf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/appl/simple/client/sim_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@
#include <string.h>
#include <errno.h>
#include <netdb.h>
#include <getopt.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

#include "simple.h"

Expand Down

0 comments on commit a6abaaf

Please sign in to comment.