After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 625506 - libseahorse/seahorse_util.c compile error on Ubuntu 6.06
libseahorse/seahorse_util.c compile error on Ubuntu 6.06
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
2.30.x
Other Linux
: Normal minor
: 2.26.0
Assigned To: Seahorse Maintainer
Seahorse Maintainer
Depends on:
Blocks:
 
 
Reported: 2010-07-28 16:04 UTC by Matthias Ferdinand
Modified: 2010-08-01 07:31 UTC
See Also:
GNOME target: 2.30.x
GNOME version: 2.29/2.30


Attachments
inserts include for sys/types.h (291 bytes, patch)
2010-07-28 16:04 UTC, Matthias Ferdinand
none Details | Review

Description Matthias Ferdinand 2010-07-28 16:04:06 UTC
Created attachment 166723 [details] [review]
inserts include for sys/types.h

Using pkgsrc on Ubuntu Linux 6.06, compiling libseahorse/seahorse_util.c gives this error:

seahorse-util.c: In function 'seahorse_util_write_file_private': 
seahorse-util.c:883: error: 'mode_t' undeclared (first use in this function)
seahorse-util.c:883: error: (Each undeclared identifier is reported only once
seahorse-util.c:883: error: for each function it appears in.)
seahorse-util.c:883: error: syntax error before 'mask'
seahorse-util.c:885: error: 'mask' undeclared (first use in this function)

For the declaration of mode_t, sys/types.h needs to be included.

Attached patch for seahorse_util.c inserts the include.

Regards
Matthias Ferdinand
Comment 1 Stef Walter 2010-08-01 07:31:10 UTC
Committed.


commit 5b5ac4bf6329972199fd4d447cbee41c481d7c10
Author: Matthias Ferdinand <mf@14v.de>
Date:   Sun Aug 1 09:12:10 2010 +0200

    Fix compile error in seahorse_util.c
    
    For the declaration of mode_t, sys/types.h needs to be included.
    
    Fixes bug #625506