UNIX/学生ツール/ゲーム/xpuyopuyo

Top > UNIX > 学生ツール > ゲーム > xpuyopuyo

Table of Contents
diff -crN xpuyo-0.12.1/record.c xpuyo/record.c
*** xpuyo-0.12.1/record.c       1997-07-07 19:08:01.000000000 +0900
--- xpuyo/record.c      2006-04-17 09:40:42.219001000 +0900
***************
*** 19,25 ****
--- 19,33 ----
 
  #include"xpuyo.h"
 
+ #include <fcntl.h>
+ #ifndef LOCK_EX
+ #define LOCK_EX F_LOCK
+ #define LOCK_UN F_ULOCK
 
+ inline int flock( int fd, int operation ){
+     return lockf( fd, operation, 0 );
+ }
+ #endif
 
  /* スペース読み飛ばし */
% netpuyos
% netpuyo -host [サーバホスト]

xrea