shithub: rgbds

Download patch

ref: eb4f790a827c7758182a3750eb717332b30d475f
parent: 8c2fb79c392d754a9bf322b9fa878593b4a1c05f
author: Vegard Nossum <[email protected]>
date: Sun Oct 21 01:51:12 EDT 2012

Include getopt.h (fix compilation on GNU/Linux)

Signed-off-by: Vegard Nossum <[email protected]>

--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -6,6 +6,7 @@
  */
 
 #include <math.h>
+#include <getopt.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -14,6 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <getopt.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
--- a/src/link/main.c
+++ b/src/link/main.c
@@ -1,3 +1,4 @@
+#include <getopt.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>