patch-fileName_c 832 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-fileName_c,v 1.2 2005/10/31 23:24:19 naddy Exp $
  2. --- fileName.c.orig Wed Aug 17 14:31:56 2005
  3. +++ fileName.c Tue Nov 1 00:03:27 2005
  4. @@ -39,7 +39,7 @@
  5. #include <stdio.h>
  6. #include <sys/types.h>
  7. #include <sys/stat.h>
  8. -#if defined(SYSV) || defined(SVR4) || defined(__CYGWIN__) || defined(__VMS )
  9. +#if defined(SYSV) || defined(SVR4) || defined(__CYGWIN__) || defined(__VMS ) || defined(__FreeBSD__) || defined(__OpenBSD__)
  10. #include <dirent.h>
  11. #else
  12. #include <sys/dir.h>
  13. @@ -461,7 +461,7 @@ static void
  14. setCWD(arg_t * arg, char *dir)
  15. {
  16. DIR *dirp;
  17. -#if defined(SYSV) || defined(SVR4) || defined(__alpha) || defined(__CYGWIN__)
  18. +#if defined(SYSV) || defined(SVR4) || defined(__alpha) || defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__OpenBSD__)
  19. struct dirent *e;
  20. #else
  21. struct direct *e;