aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-06-17 23:33:42 +0000
committerMike Frysinger <vapier@gentoo.org>2012-06-17 23:33:42 +0000
commita6c2b87eec205ad6c5958eeb1711a7eb1638a51f (patch)
tree6e15997a9ec5c16db59718b5e2102e50a1f3db9a /sim
parent1788b2d3beb8f1a59976a2ffef984d8e52188203 (diff)
downloadgdb-a6c2b87eec205ad6c5958eeb1711a7eb1638a51f.zip
gdb-a6c2b87eec205ad6c5958eeb1711a7eb1638a51f.tar.gz
gdb-a6c2b87eec205ad6c5958eeb1711a7eb1638a51f.tar.bz2
sim: moxie: fix build by including config.h first
Diffstat (limited to 'sim')
-rw-r--r--sim/moxie/ChangeLog4
-rw-r--r--sim/moxie/interp.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/sim/moxie/ChangeLog b/sim/moxie/ChangeLog
index 1b35776..d4f1e24 100644
--- a/sim/moxie/ChangeLog
+++ b/sim/moxie/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-17 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c: Include config.h first. Also include fcntl.h directly.
+
2012-06-15 Joel Brobecker <brobecker@adacore.com>
* config.in, configure: Regenerate.
diff --git a/sim/moxie/interp.c b/sim/moxie/interp.c
index 9c98021..c16c34f 100644
--- a/sim/moxie/interp.c
+++ b/sim/moxie/interp.c
@@ -17,6 +17,8 @@ GNU General Public License for more details.
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 <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include "sysdep.h"