diff --git a/init.c b/init.c index 26822c64..2d0baa00 100644 --- a/init.c +++ b/init.c @@ -2680,4 +2680,5 @@ void Compute_menu_offsets(void) } // Update global menu coordinates Menu_Y = Screen_height - Menu_height * Menu_factor_Y; -} \ No newline at end of file +} + diff --git a/init.h b/init.h index 7d479fb7..8d8ca318 100644 --- a/init.h +++ b/init.h @@ -49,3 +49,4 @@ byte * Load_font(const char * font_name); /// Based on which toolbars are visible, updates their offsets and /// computes ::Menu_height and ::Menu_Y void Compute_menu_offsets(void); + diff --git a/io.c b/io.c index 26d8caf0..5f9f7e70 100644 --- a/io.c +++ b/io.c @@ -27,6 +27,9 @@ #include #include #include +#include +#include + #if defined(__amigaos4__) #include #include @@ -315,7 +318,7 @@ byte Create_lock_file(const char *file_directory) } #else // Unixy method for lock file - Lock_file_handle = open(lock_filename,O_WRONLY|O_CREAT); + Lock_file_handle = open(lock_filename,O_WRONLY|O_CREAT,S_IRUSR|S_IWUSR); if (Lock_file_handle == -1) { // Usually write-protected media @@ -342,14 +345,14 @@ void Release_lock_file(const char *file_directory) } #else if (Lock_file_handle != -1) - { - close(Lock_file_handle); - Lock_file_handle = -1; - } + //{ + // close(Lock_file_handle); + // Lock_file_handle = -1; + //} #endif // Actual deletion strcpy(lock_filename,file_directory); strcat(lock_filename,"gfx2.lck"); remove(lock_filename); -} \ No newline at end of file +} diff --git a/io.h b/io.h index b0f0e571..98cecb43 100644 --- a/io.h +++ b/io.h @@ -102,4 +102,5 @@ byte Create_lock_file(const char *file_directory); /// /// Release a lock file created by ::Create_Lock_file -void Release_lock_file(const char *file_directory); \ No newline at end of file +void Release_lock_file(const char *file_directory); +