Skip to content

Commit 029964a

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]>
1 parent f392082 commit 029964a

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
@@ -611,8 +611,6 @@ if test "$enable_epoll" != "no" ; then
611611
AC_INCLUDES_DEFAULT
612612
#include <sys/epoll.h>
613613
],[[
614-
int main(int argc, char **argv)
615-
{
616614
struct epoll_event epevin;
617615
struct epoll_event epevout;
618616
int res;
@@ -640,7 +638,6 @@ int main(int argc, char **argv)
640638
}
641639
}
642640
/* SUCCESS */
643-
}
644641
]])],
645642
[haveepoll=yes
646643
# OMPI: Don't use AC_LIBOBJ

0 commit comments

Comments
 (0)