quick fix for building bim under linux

This commit is contained in:
K. Lange 2018-05-17 18:25:01 +09:00
parent 4ae5ef07f5
commit 2ab344f847

View File

@ -24,6 +24,7 @@
#ifdef __linux__
#include <stdio_ext.h>
#include <locale.h>
#define BACKSPACE_KEY 0x7F
#else
#include <syscall.h>
@ -551,6 +552,10 @@ void SIGWINCH_handler(int sig) {
}
void initialize() {
#ifdef __linux__
setlocale(LC_ALL, "");
#endif
buffers_avail = 4;
buffers = malloc(sizeof(buffer_t *) * buffers_avail);