Change null function to #define for del_curterm() - solves build problem on some BSDs.

darcs-hash:20060813030853-344c5-7aa2cc3c70044214d90263999f2312f8f10296a4.gz
This commit is contained in:
netocrat
2006-08-13 13:08:53 +10:00
parent 2b0d64184a
commit 65035c4dc7
2 changed files with 1 additions and 9 deletions

View File

@@ -1006,14 +1006,6 @@ wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz)
#endif
#ifdef HAVE_BROKEN_DEL_CURTERM
int del_curterm(TERMINAL *oterm)
{
}
#endif
#ifndef HAVE_LRAND48_R
int lrand48_r(struct drand48_data *buffer, long int *result)

View File

@@ -304,7 +304,7 @@ size_t wcslcpy( wchar_t *dst, const wchar_t *src, size_t siz );
/**
BSD del_curterm seems to do a double-free. We redefine it as a no-op
*/
int del_curterm(TERMINAL *oterm);
#define del_curterm(oterm) 1
#endif
#ifndef HAVE_LRAND48_R