[Bug 296489] linux_xattr.c: use of undeclared identifier 'SSIZE_MAX'

[email protected]
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296489

            Bug ID: 296489
           Summary: linux_xattr.c: use of undeclared identifier
                    'SSIZE_MAX'
           Product: Base System
           Version: CURRENT
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

I've seen this a few times recently when building kernel on amd64 with
TARGET_ARCH=i386:

/usr/local/src/sys/compat/linux/linux_xattr.c:356:15: error: use of undeclared
identifier 'SSIZE_MAX'

I noticed that limits.h is explicitly included in several other
sys/compat/linux/ c files. Explicitly including limits.h here as well does seem
to resolve the build error, although I'm not sure if this breaks anything else.



diff --git a/sys/compat/linux/linux_xattr.c b/sys/compat/linux/linux_xattr.c
index 9a206089ada1..608e70706a0b 100644
--- a/sys/compat/linux/linux_xattr.c
+++ b/sys/compat/linux/linux_xattr.c
@@ -30,6 +30,7 @@
 #include <sys/extattr.h>
 #include <sys/fcntl.h>
 #include <sys/file.h>
+#include <sys/limits.h>
 #include <sys/namei.h>
 #include <sys/proc.h>
 #include <sys/syscallsubr.h>

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.