X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgetline.c;h=89370b1332b3c9b5d9e50f1314bbedc78985910c;hb=2ca4a5735ccbbe66ae2277faf6aa47e2bb83bfab;hp=114e2c33db38b2ea0ca13bb33f63ec2e2a36fb90;hpb=e91248ddc41199bda0676817debf080c2b7835a1;p=pspp diff --git a/src/getline.c b/src/getline.c index 114e2c33db..89370b1332 100644 --- a/src/getline.c +++ b/src/getline.c @@ -79,7 +79,7 @@ getl_initialize (void) void getl_uninitialize (void) { -#if HAVE_LIBHISTORY && unix +#if HAVE_LIBHISTORY && defined (unix) if (history_file) write_history (history_file); #endif @@ -424,7 +424,7 @@ read_console (void) #if HAVE_LIBHISTORY if (!history_file) { -#if unix +#ifdef unix history_file = tilde_expand (HISTORY_FILE); #endif using_history ();