Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix build on openindiana.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 26 Sep 2019 14:33:56 +0000 (16:33 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 26 Sep 2019 14:46:20 +0000 (16:46 +0200)
On openindiana, getopt() is declared in <stdio.h>, <stdlib.h>, and <unistd.h>.
Include all of them to avoid build errors when it's #define'd to smpi_getopt.

include/smpi/smpi_helpers_internal.h

index 5a3e4b6..6c226fb 100644 (file)
@@ -7,6 +7,8 @@
 #define SMPI_HELPERS_INTERNAL_H
 
 #include <getopt.h>
+#include <stdio.h>  /* for getopt(), don't remove */
+#include <stdlib.h> /* for getopt(), don't remove */
 #include <unistd.h>
 
 #include <sys/time.h>