]> gitweb.factorcode.org Git - factor.git/commitdiff
fix linux bootstrap
authorJoe Groff <arcata@gmail.com>
Mon, 28 Sep 2009 03:16:07 +0000 (22:16 -0500)
committerJoe Groff <arcata@gmail.com>
Mon, 28 Sep 2009 03:16:07 +0000 (22:16 -0500)
basis/unix/unix.factor

index fa61e9041a5260d28d9db673282478b1d71b009f..afe24905d69ba11c18cd227bf64b1d40ee46a90a 100644 (file)
@@ -62,6 +62,8 @@ MACRO:: unix-system-call ( quot -- )
         ]
     ] ;
 
+HOOK: open-file os ( path flags mode -- fd )
+
 <<
 
 {
@@ -155,8 +157,6 @@ FUNCTION: int shutdown ( int fd, int how ) ;
 
 FUNCTION: int open ( char* path, int flags, int prot ) ;
 
-HOOK: open-file os ( path flags mode -- fd )
-
 M: unix open-file [ open ] unix-system-call ;
 
 FUNCTION: DIR* opendir ( char* path ) ;