A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix getopt for BSD systems
[simgrid.git]
/
teshsuite
/
smpi
/
pt2pt-pingpong
/
pt2pt-pingpong.c
diff --git
a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
index 468bcc6211327e4c1698fbbca5b5b21fdf825022..6ddb6236809c34be4eb3c4cd5e37df8c730e4a60 100644
(file)
--- a/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
+++ b/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
@@
-10,7
+10,6
@@
#include <mpi.h>
static void test_opts(int* argc, char **argv[]){
#include <mpi.h>
static void test_opts(int* argc, char **argv[]){
-#if defined __linux__
int found = 0, ret;
while ((ret = getopt(*argc, *argv, "s")) >= 0)
{
int found = 0, ret;
while ((ret = getopt(*argc, *argv, "s")) >= 0)
{
@@
-23,7
+22,6
@@
static void test_opts(int* argc, char **argv[]){
if (found!=1){
printf("(smpi_)getopt failed ! \n");
}
if (found!=1){
printf("(smpi_)getopt failed ! \n");
}
-#endif
}
int main(int argc, char *argv[])
}
int main(int argc, char *argv[])