From 58b0d467b67f3978d46e30be4c7cf64c8ec752a0 Mon Sep 17 00:00:00 2001
From: Marcus Comstedt <marcus@mc.pp.se>
Date: Tue, 17 Aug 1999 15:34:15 +0200
Subject: [PATCH] Some file attributes only exist with w2k-compatible
 headerfiles.  Fixed.

Rev: src/modules/system/nt.c:1.14
---
 src/modules/system/nt.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/modules/system/nt.c b/src/modules/system/nt.c
index eff3c54fd6..af8ef23593 100644
--- a/src/modules/system/nt.c
+++ b/src/modules/system/nt.c
@@ -1,5 +1,5 @@
 /*
- * $Id: nt.c,v 1.13 1999/08/14 09:00:42 hubbe Exp $
+ * $Id: nt.c,v 1.14 1999/08/17 13:34:15 marcus Exp $
  *
  * NT system calls for Pike
  *
@@ -1712,9 +1712,15 @@ void init_nt_system_calls(void)
 
   SIMPCONST(FILE_ATTRIBUTE_COMPRESSED);
   SIMPCONST(FILE_ATTRIBUTE_DIRECTORY);
+#ifdef FILE_ATTRIBUTE_ENCRYPTED
   SIMPCONST(FILE_ATTRIBUTE_ENCRYPTED);
+#endif
+#ifdef FILE_ATTRIBUTE_REPARSE_POINT
   SIMPCONST(FILE_ATTRIBUTE_REPARSE_POINT);
+#endif
+#ifdef FILE_ATTRIBUTE_SPARSE_FILE
   SIMPCONST(FILE_ATTRIBUTE_SPARSE_FILE);
+#endif
   
   ADD_FUNCTION("cp",f_cp,tFunc(tStr tStr,tInt), 0);
 
-- 
GitLab