Skip to content

Commit 3ce0104

Browse files
committed
libevent2022: Fix broken configure AC_LANG_PROGRAM
* The AC_LANG_PROGRAM macro adds the `main()` so it is erroneous to add it to the test program. * This was detected with the XL compilers which will fail to build the program in this situation. The GNU compiler does not error out or warn, but successfully compiles the program. Signed-off-by: Joshua Hursey <[email protected]> (cherry picked from commit 029964a) Signed-off-by: Joshua Hursey <[email protected]>
1 parent 3ef2439 commit 3ce0104

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

opal/mca/event/libevent2022/libevent/configure.ac

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,6 @@ if test "$enable_epoll" != "no" ; then
610610
AC_INCLUDES_DEFAULT
611611
#include <sys/epoll.h>
612612
],[[
613-
int main(int argc, char **argv)
614-
{
615613
struct epoll_event epevin;
616614
struct epoll_event epevout;
617615
int res;
@@ -639,7 +637,6 @@ int main(int argc, char **argv)
639637
}
640638
}
641639
/* SUCCESS */
642-
}
643640
]])],
644641
[haveepoll=yes
645642
# OMPI: Don't use AC_LIBOBJ

0 commit comments

Comments
 (0)