Skip to content

Commit

Permalink
tune2fs.c: define PATH_MAX if it is not defined by the system headers
Browse files Browse the repository at this point in the history
This is needed to compile on GNU/Hurd.

Addresses-Debian-Bug: #1056145
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
tytso committed Nov 20, 2023
1 parent 6e776e8 commit 795dcc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion misc/tune2fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ extern int optind;
#include <unistd.h>
#include <sys/types.h>
#include <libgen.h>
#include <limits.h>
#include <limits.h> /* for PATH_MAX */
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#include "ext2fs/ext2_fs.h"
#include "ext2fs/ext2fs.h"
#include "ext2fs/kernel-jbd.h"
Expand Down

0 comments on commit 795dcc2

Please sign in to comment.