patch for xfs/linux/getcwd.c

Derrick J Brashear shadow at dementia.org
Mon Jun 7 04:16:04 CEST 1999


This is required to build on my RedHat 6.0/sparc system (with kernel
2.3.5)
*** getcwd.c~   Sun Jun  6 22:13:43 1999
--- getcwd.c    Sun Jun  6 22:13:13 1999
***************
*** 43,48 ****
--- 43,49 ----
  #include <stdio.h>
  #include <unistd.h>
  #include <linux/unistd.h>
+ #include <sys/types.h>
  #include <linux/stat.h>
  #include <errno.h>
  #include <dlfcn.h>

dev_t otherwise isn't defined in linux/stat.h

Also, for some reason, HAVE_INIT_MUTEX wasn't defined, and I had to define
it to get xfs_dev.c to build. When I get back I guess I'll look at why.

-D







More information about the Arla-drinkers mailing list