diff options
author | Masaki Muranaka <monaka@sourceware.org> | 2010-02-14 07:37:11 +0000 |
---|---|---|
committer | Masaki Muranaka <monaka@sourceware.org> | 2010-02-14 07:37:11 +0000 |
commit | 2388a1526b1019b47836c395d28a1e57073dc61b (patch) | |
tree | a0e6a6f666cab03301a8fcdbb87d5897113defd3 /sim/rx/main.c | |
parent | 22e041e26738fc4fab6cbabba9c5ce88e535a83f (diff) | |
download | gdb-2388a1526b1019b47836c395d28a1e57073dc61b.zip gdb-2388a1526b1019b47836c395d28a1e57073dc61b.tar.gz gdb-2388a1526b1019b47836c395d28a1e57073dc61b.tar.bz2 |
* configure.in: Check if the host has getopt.h.
* configure: Regenerate.
* config.in: Regenerate.
* main.c: Include config.h.
Use HAVE_STDLIB_H, HAVE_UNISTD_H, HAVE_GETOPT_H.
Include getopt.h in case HAVE_GETOPT_H is defined.
Diffstat (limited to 'sim/rx/main.c')
-rw-r--r-- | sim/rx/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/rx/main.c b/sim/rx/main.c index 350c7ae..a83794e 100644 --- a/sim/rx/main.c +++ b/sim/rx/main.c @@ -19,13 +19,21 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdio.h> #include <string.h> +#ifdef HAVE_STDLIB_H #include <stdlib.h> +#endif +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #include <assert.h> #include <setjmp.h> #include <signal.h> +#ifdef HAVE_GETOPT_H +#include <getopt.h> +#endif #include "bfd.h" |