skydevgit / crisscross

Automatically exported from code.google.com/p/crisscross
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[PATCH] Build with BUILDFORNDS=1 fails #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. export DEVKITARM=/path/to/devkitarm
2. make BUILDFORNDS=1

What is the expected output? What do you see instead?
Should compile :-) Actually fails trying to #include <sys/ioctl.h> in
source/console.cpp. For some reason, dswifi has messed up these headers. It
has the ioctl functions, but they aren't in sys/ioctl.h :-/

What version of the product are you using? On what operating system?
0.7.1, Linux, devkitArm r23

Please provide any additional information below.
Fix is easy:

Index: source/console.cpp
===================================================================
--- source/console.cpp  (revision 779)
+++ source/console.cpp  (working copy)
@@ -14,7 +14,9 @@
 #include <crisscross/console.h>

 #ifndef TARGET_OS_WINDOWS
-#  include <sys/ioctl.h>
+#  ifndef TARGET_OS_NDSFIRMWARE
+#    include <sys/ioctl.h>
+#  endif
 #  include <sys/wait.h>
 #  include <fcntl.h>
 #  include <signal.h>

Original issue reported on code.google.com by richard.quirk on 8 Sep 2008 at 9:27

GoogleCodeExporter commented 9 years ago
The change is in SVN now. :)

Original comment by steven.n...@gmail.com on 8 Sep 2008 at 9:30