missing sys/stat.h include in shm.c for fstat64()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



building on my x86_64 system shows:
shm.c: In function ‘attach_shared’:
shm.c:139:2: warning: implicit declaration of function ‘fstat64’

and that's simply due to sys/stat.h not being included

the homepage doesnt list a git tree or anything, so hand pasting:

--- a/shm.c
+++ b/shm.c
@@ -25,6 +25,7 @@
 #include <sys/ipc.h>
 #include <sys/shm.h>
 #include <sys/fcntl.h>
+#include <sys/stat.h>
 #include <stdarg.h>
 #include <errno.h>
 #include <unistd.h>
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux