GNOME Bugzilla – Bug 575629
Systemwide includes mixed up with local includes
Last modified: 2009-03-30 22:36:28 UTC
Please describe the problem: The following vala snippet should generate c-code that contains #include <signal.h>. This only works while the file is _not_ called signal.vala, in which case the generated local #include "signal.h" makes the systemwide include disappear. public static void myhandler( int signum ) { // restore original handler Posix.signal( Posix.SIGINT, null ); debug( "myhandler" ); } public static int main( string[] args ) { debug( "yo" ); var handler = Posix.signal( Posix.SIGINT, myhandler ); var loop = new GLib.MainLoop( null, false ); loop.run(); return 0; } Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Confirming, blocked by header rework.
commit 2d4a4a264677b42710914907f63e1624e25e560f Author: Jürg Billeter <j@bitron.ch> Date: Tue Mar 31 00:31:07 2009 +0200 Rework header file generation Generate single C header file for public API, do not use header files for internal API. Fixes bug 471244, bug 571037, bug 572536, and bug 575629.