[PATCH] Fix for build failures on Hurd

View: New views
2 Messages — Rating Filter:   Alert me  

[PATCH] Fix for build failures on Hurd

by Andres Mejia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here's a patch that will fix build failures for the Hurd. Hurd doesn't define
PATH_MAX. Pulseaudio upstream has already made fixes for building on Hurd.

--
Regards,
Andres

[hurd_build_fix.patch]

diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c
index 3eac26c..402b7f5 100644
--- a/Alc/pulseaudio.c
+++ b/Alc/pulseaudio.c
@@ -94,7 +94,7 @@ typedef struct {
     pa_buffer_attr attr;
     pa_sample_spec spec;
 
-    char path_name[PATH_MAX];
+    char *path_name;
     const char *context_name;
     const char *stream_name;
 


_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel

Re: [PATCH] Fix for build failures on Hurd

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 19 August 2009 11:07:07 am Andres Mejia wrote:
> Here's a patch that will fix build failures for the Hurd. Hurd doesn't
> define PATH_MAX. Pulseaudio upstream has already made fixes for building on
> Hurd.

Hi.

Unfortunately that creates a problem where it won't get the name of the
executable (and possibly crash). I think the proper way to handle it would be
to define PATH_MAX if it isn't already defined.
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel