8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 03:23:04 +01:00

Fixed windows build

This commit is contained in:
Roman Simakov 2016-06-02 17:26:51 +03:00
parent 5d6030db2e
commit 1597188f4d

View File

@ -34,7 +34,6 @@
#include "../jrd/ibase.h"
#include "../yvalve/msg.h"
#include "../yvalve/gds_proto.h"
#include "../common/os/os_utils.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@ -337,7 +336,7 @@ static USHORT do_msgs( const TEXT* filename, const TEXT* locale, bool sw_warning
// Open output file
global_file = os_utils::open(filename, O_WRONLY | O_CREAT | O_BINARY, 0666);
global_file = open(filename, O_WRONLY | O_CREAT | O_BINARY, 0666);
if (global_file == -1)
{
printf("Can't open %s\n", filename);
@ -449,7 +448,7 @@ static USHORT do_msgs( const TEXT* filename, const TEXT* locale, bool sw_warning
// Re-write header record and finish
os_utils::lseek(global_file, LSEEK_OFFSET_CAST 0, 0);
lseek(global_file, LSEEK_OFFSET_CAST 0, 0);
FB_UNUSED(write(global_file, &header, sizeof(header)));
close(global_file);
global_file = -1;