X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fnmem.c;h=75cbd20496d013301a211030acdeb175f961e4b8;hb=58b2fdadbb7b8a8845ff67501520fe1660dedeee;hp=95454718876becb3dc67ca6226d4924e951e7ea2;hpb=de70f47f9680c5fd7b3863f2a647d6dc760c2d98;p=yaz-moved-to-github.git diff --git a/util/nmem.c b/util/nmem.c index 9545471..75cbd20 100644 --- a/util/nmem.c +++ b/util/nmem.c @@ -1,9 +1,9 @@ /* - * Copyright (c) 1995-2001, Index Data. + * Copyright (c) 1995-2002, Index Data. * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Id: nmem.c,v 1.35 2002-06-12 19:42:38 adam Exp $ + * $Id: nmem.c,v 1.37 2002-09-25 12:37:07 adam Exp $ */ /* @@ -16,6 +16,7 @@ #include #include +#include #include #include #include @@ -429,3 +430,13 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, return TRUE; } #endif + +int yaz_errno(void) +{ + return errno; +} + +void yaz_set_errno(int v) +{ + errno = v; +}