Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix build on openindiana.
[simgrid.git] / include / smpi / smpi_helpers_internal.h
index 0c78541..6c226fb 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2018. The SimGrid Team.  All rights reserved.              */
+/* Copyright (c) 2018-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -6,6 +6,9 @@
 #ifndef SMPI_HELPERS_INTERNAL_H
 #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>
@@ -25,7 +28,6 @@ int smpi_clock_gettime(clockid_t clk_id, struct timespec* tp);
 unsigned int smpi_sleep(unsigned int secs);
 int smpi_gettimeofday(struct timeval* tv, struct timezone* tz);
 
-struct option;
 int smpi_getopt_long_only(int argc, char* const* argv, const char* options, const struct option* long_options,
                           int* opt_index);
 int smpi_getopt_long(int argc, char* const* argv, const char* options, const struct option* long_options,