Bug 35685

Summary: Fix build on GNU Hurd
Product: PolicyKit Reporter: Emilio Pozuelo Monfort <pochu27>
Component: daemonAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED FIXED QA Contact: David Zeuthen (not reading bugmail) <zeuthen>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix build on GNU Hurd
Fix build on GNU Hurd

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.