mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-12 05:52:19 -04:00
19 lines
395 B
C
19 lines
395 B
C
$NetBSD: patch-fdm.h,v 1.3 2015/09/25 13:08:44 leot Exp $
|
|
|
|
MAXNAMLEN is not POSIX. For systems that does not define it use NAME_MAX
|
|
macro instead.
|
|
|
|
--- fdm.h.orig 2015-09-14 14:40:44.000000000 +0000
|
|
+++ fdm.h
|
|
@@ -72,6 +72,10 @@
|
|
|
|
extern char *__progname;
|
|
|
|
+#ifndef MAXNAMLEN
|
|
+#define MAXNAMLEN NAME_MAX
|
|
+#endif
|
|
+
|
|
/* Linux compatibility bullshit. */
|
|
#ifndef UID_MAX
|
|
#define UID_MAX UINT_MAX
|