Bug 35685 - Fix build on GNU Hurd
Summary: Fix build on GNU Hurd
Status: RESOLVED FIXED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-26 00:28 UTC by Emilio Pozuelo Monfort
Modified: 2013-01-09 19:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Fix build on GNU Hurd (1.29 KB, patch)
2011-03-26 00:29 UTC, Emilio Pozuelo Monfort
Details | Splinter Review
Fix build on GNU Hurd (1.18 KB, patch)
2011-04-30 03:17 UTC, Emilio Pozuelo Monfort
Details | Splinter Review

Description Emilio Pozuelo Monfort 2011-03-26 00:28:19 UTC
Hi,

PATH_MAX is undefined on GNU Hurd (as there's no limit). This patch fixes the build there by using dynamic allocation in the same way that src/examples/frobnicate.c does it. Note that POSIX says PATH_MAX may not be defined, so this is right.
Comment 1 Emilio Pozuelo Monfort 2011-03-26 00:29:58 UTC
Created attachment 44878 [details] [review]
Fix build on GNU Hurd
Comment 2 Emilio Pozuelo Monfort 2011-04-30 03:17:51 UTC
Created attachment 46186 [details] [review]
Fix build on GNU Hurd

This patch is even more portable and cleaner. It uses g_get_current_dir().
Comment 3 Michael Biebl 2012-12-30 14:41:08 UTC
Hi David,
any news on this bug report?
Comment 4 David Zeuthen (not reading bugmail) 2013-01-09 19:08:11 UTC
Committed thanks. Sorry for the lag.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.