#10 missing getopt.h inclusion

closed
nobody
None
5
2008-07-26
2008-07-25
No

Missing an inclusions of getopt.h in main trunk:

svn diff
Index: assopt.c
===================================================================
--- assopt.c (revision 646)
+++ assopt.c (working copy)
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <assert.h>
#include "assemble.h"
+#include <getopt.h>

#ifdef __cplusplus
extern "C" {

Discussion

  • lh3

    lh3 - 2008-07-26

    Logged In: YES
    user_id=1602510
    Originator: NO

    Thank you. Although missing this header does not cause problem at the Sangr Inst., I know it will cause troubles to other systems. I have added "unistd.h" to assopt.c because in most Unix/Linux, getopt() is declared there. I know some system does not have <getopt.h>.

    This fix will appear in maq-0.6.8.

    Cheers,

    Heng

     
  • lh3

    lh3 - 2008-07-26
    • status: open --> closed
     

Log in to post a comment.