X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=ndmp-src%2Fndmos_glib.h;h=0c5e72f9d2de02ad9219ee096d7edade3fd069e7;hb=HEAD;hp=e26ee1c89fdd83fc22fa50309939837f91bf904a;hpb=d5853102f67d85d8e169f9dbe973ad573306c215;p=debian%2Famanda diff --git a/ndmp-src/ndmos_glib.h b/ndmp-src/ndmos_glib.h index e26ee1c..0c5e72f 100644 --- a/ndmp-src/ndmos_glib.h +++ b/ndmp-src/ndmos_glib.h @@ -52,39 +52,6 @@ #endif -/* On Solaris platforms create platform specific environment for NDMP - if not we might see issues with rpc code, specifically with 64 bit - mode. -*/ - -#ifdef __sun__ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* On some solaris distributions INADDR_NONE is not defined - hence define here.. "in_addr_t" is defined in netinet/in.h -*/ - -#ifndef INADDR_NONE -#define INADDR_NONE ((in_addr_t)-1) -#endif - -#endif - - /* this may need to be autodetected, or NDMOS_MACRO_SET_SOCKADDR may need to be * rewritten in terms of Amanda's sockaddr-util.h. According to ndmpjoblib, * only FreeBDS has sin_len. */ @@ -116,6 +83,7 @@ #define NDMOS_MACRO_SRAND() g_random_set_seed(time(0)) #define NDMOS_MACRO_RAND() g_random_int() /* default: NDMOS_MACRO_OK_TAPE_REC_LEN */ +#define NDMOS_MACRO_FREE(T) g_free(T) /* extra */ #ifdef assert