music_cmd.h
branchSDL-1.2
changeset 892 9dd046cb6cd7
parent 573 23d69b6621d0
     1.1 --- a/music_cmd.h	Sun Oct 07 11:47:50 2018 +0300
     1.2 +++ b/music_cmd.h	Sun Oct 07 12:32:15 2018 +0300
     1.3 @@ -29,9 +29,12 @@
     1.4  #if defined(__linux__) && defined(__arm__)
     1.5  # include <linux/limits.h>
     1.6  #endif
     1.7 +#ifndef PATH_MAX /* GNU/Hurd? */
     1.8 +# define PATH_MAX 4096
     1.9 +#endif
    1.10  typedef struct {
    1.11 -	char *file;
    1.12 -	char *cmd;
    1.13 +	char file[PATH_MAX];
    1.14 +	char cmd[PATH_MAX];
    1.15  	pid_t pid;
    1.16  } MusicCMD;
    1.17