Description of problem: libaio.h is missing the extern "C" declaration, and contains invalid C++ code (assignment from a pointer to a function into a void pointer) libaio-devel-0.3.98-2 How reproducible: Always Steps to Reproduce: 1. echo '#include <libaio.h>' > x.cpp 2. g++ x.cpp Actual results: In file included from x.cpp:1: /usr/include/libaio.h: In function `void io_set_callback(iocb*, void (*)(io_context*, iocb*, long int, long int))': /usr/include/libaio.h:142: invalid conversion from `void (*)(io_context*, iocb*, long int, long int)' to `void*' Expected results: Successful compilation Additional info:
Created attachment 98153 [details] allow C++ code to include libaio.h
Thanks, I've included your fixes in the latest libaio, version 0.3.99-1. This is now present in rawhide.
Latest rawhide works for me.