Configure and test modification for better Freebsd port

This commit is contained in:
User Olof 2019-09-20 06:09:48 -10:00
parent fe1aeda4f2
commit 8c18f2a86d
12 changed files with 31 additions and 29 deletions

View file

@ -48,6 +48,7 @@
#include <netinet/in.h>
#include <sys/time.h> /* gettimeofday */
#include <sys/types.h>
#include <sys/param.h> /* MAXPATHLEN */
/*
* CLIXON version macros

View file

@ -180,7 +180,7 @@ typedef struct clixon_plugin_api* (plginit2_t)(clicon_handle); /* Clixon plug
struct clixon_plugin_api{
/*--- Common fields. ---*/
char ca_name[PATH_MAX]; /* Name of plugin (given by plugin) */
char ca_name[MAXPATHLEN]; /* Name of plugin (given by plugin) */
plginit2_t *ca_init; /* Clixon plugin Init (implicit) */
plgstart_t *ca_start; /* Plugin start */
plgexit_t *ca_exit; /* Plugin exit */
@ -235,7 +235,7 @@ typedef struct clixon_plugin_api clixon_plugin_api;
/* Internal plugin structure with dlopen() handle and plugin_api
*/
struct clixon_plugin{
char cp_name[PATH_MAX]; /* Plugin filename. Note api ca_name is given by plugin itself */
char cp_name[MAXPATHLEN]; /* Plugin filename. Note api ca_name is given by plugin itself */
plghndl_t cp_handle; /* Handle to plugin using dlopen(3) */
clixon_plugin_api cp_api;
};

View file

@ -509,7 +509,7 @@ rpc_callback_register(clicon_handle h,
char *namespace,
char *name)
{
rpc_callback_t *rc;
rpc_callback_t *rc = NULL;
if (name == NULL || namespace == NULL){
clicon_err(OE_DB, EINVAL, "name or namespace NULL");

View file

@ -55,6 +55,7 @@
#include <assert.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <sys/param.h>
/* cligen */
#include <cligen/cligen.h>

View file

@ -78,6 +78,7 @@
#include <assert.h>
#include <regex.h>
#include <netinet/in.h>
#include <sys/param.h>
/* cligen */
#include <cligen/cligen.h>