Skip to content

Commit fccd918

Browse files
committed
os.h.in: make sure PATH_MAX is defined to a non zero value
PATH_MAX is used throughout the project. On Ubuntu PATH_MAX is not set, so the os.h was setting it to 0, which caused strange errors. Signed-off-by: Paul Barrette <paulbarrette@gmail.com>
1 parent 6608869 commit fccd918

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/os.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ typedef struct os_system_info
270270
* @brief Maximum path length
271271
*/
272272
#ifndef PATH_MAX
273-
# define PATH_MAX 0
273+
# define PATH_MAX 4096
274274
#endif
275275

276276

0 commit comments

Comments
 (0)