Red Hat Bugzilla – Bug 799693
guestfs.h failes to compile with c++ compiler
Last modified: 2012-03-04 06:59:07 EST
Created attachment 567384 [details]
Description of problem:
Function guestfs_mkdtemp uses c++ keyword "template" as a parameter name. In result, attempt to use guestfs.h header in c++ program results in compile error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Try to compile above with g++
/usr/include/guestfs.h:1401:76: error: expected ‘,’ or ‘...’ before ‘template’
Proposed patch included.
Thanks, the patch looks good and I will push it shortly.
Will be fixed in 1.17.11 / 1.16.8.