@@ -339,7 +339,6 @@ static Handle<Value> Stat(const Arguments& args) {
339
339
}
340
340
}
341
341
342
- #ifdef __POSIX__
343
342
static Handle<Value> LStat (const Arguments& args) {
344
343
HandleScope scope;
345
344
@@ -356,7 +355,6 @@ static Handle<Value> LStat(const Arguments& args) {
356
355
return scope.Close (BuildStatsObject ((NODE_STAT_STRUCT*)SYNC_REQ.ptr ));
357
356
}
358
357
}
359
- #endif // __POSIX__
360
358
361
359
static Handle<Value> FStat (const Arguments& args) {
362
360
HandleScope scope;
@@ -807,7 +805,6 @@ static Handle<Value> Chmod(const Arguments& args) {
807
805
}
808
806
809
807
810
- #ifdef __POSIX__
811
808
/* fs.fchmod(fd, mode);
812
809
* Wrapper for fchmod(1) / EIO_FCHMOD
813
810
*/
@@ -827,10 +824,8 @@ static Handle<Value> FChmod(const Arguments& args) {
827
824
return Undefined ();
828
825
}
829
826
}
830
- #endif // __POSIX__
831
827
832
828
833
- #ifdef __POSIX__
834
829
/* fs.chown(path, uid, gid);
835
830
* Wrapper for chown(1) / EIO_CHOWN
836
831
*/
@@ -856,10 +851,8 @@ static Handle<Value> Chown(const Arguments& args) {
856
851
return Undefined ();
857
852
}
858
853
}
859
- #endif // __POSIX__
860
854
861
855
862
- #ifdef __POSIX__
863
856
/* fs.fchown(fd, uid, gid);
864
857
* Wrapper for fchown(1) / EIO_FCHOWN
865
858
*/
@@ -885,7 +878,7 @@ static Handle<Value> FChown(const Arguments& args) {
885
878
return Undefined ();
886
879
}
887
880
}
888
- # endif // __POSIX__
881
+
889
882
890
883
static Handle<Value> UTimes (const Arguments& args) {
891
884
HandleScope scope;
@@ -949,9 +942,7 @@ void File::Initialize(Handle<Object> target) {
949
942
NODE_SET_METHOD (target, " sendfile" , SendFile);
950
943
NODE_SET_METHOD (target, " readdir" , ReadDir);
951
944
NODE_SET_METHOD (target, " stat" , Stat);
952
- #ifdef __POSIX__
953
945
NODE_SET_METHOD (target, " lstat" , LStat);
954
- #endif // __POSIX__
955
946
NODE_SET_METHOD (target, " fstat" , FStat);
956
947
#ifdef __POSIX__
957
948
NODE_SET_METHOD (target, " link" , Link);
@@ -962,15 +953,13 @@ void File::Initialize(Handle<Object> target) {
962
953
NODE_SET_METHOD (target, " write" , Write);
963
954
964
955
NODE_SET_METHOD (target, " chmod" , Chmod);
965
- #ifdef __POSIX__
966
956
NODE_SET_METHOD (target, " fchmod" , FChmod);
967
957
// NODE_SET_METHOD(target, "lchmod", LChmod);
968
958
969
959
NODE_SET_METHOD (target, " chown" , Chown);
970
960
NODE_SET_METHOD (target, " fchown" , FChown);
971
961
// NODE_SET_METHOD(target, "lchown", LChown);
972
962
973
- #endif // __POSIX__
974
963
NODE_SET_METHOD (target, " utimes" , UTimes);
975
964
NODE_SET_METHOD (target, " futimes" , FUTimes);
976
965
0 commit comments