Skip to content

Commit

Permalink
Change the order of inclusion of unistd.h to fix getopt() prototype i…
Browse files Browse the repository at this point in the history
…ssue
  • Loading branch information
lchouinard committed Jul 9, 2015
1 parent 2f59c49 commit bec1a16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion applications/crash/eppic.c
Expand Up @@ -16,6 +16,9 @@
* information.
*/

/* unistd.h must appear before gdb includes in order for getopt() prototype definition to get included */
#include <unistd.h>

#include "gdb/defs.h"
#include "target.h"
#include "symtab.h"
Expand Down Expand Up @@ -54,7 +57,6 @@

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <eppic_api.h>

Expand Down

0 comments on commit bec1a16

Please sign in to comment.