mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
s3-libnetapi: Cope with popt versions without POPT_TABLEEND
This commit is contained in:
@ -7,5 +7,9 @@ void popt_common_callback(poptContext con,
|
||||
|
||||
extern struct poptOption popt_common_netapi_examples[];
|
||||
|
||||
#ifndef POPT_TABLEEND
|
||||
#define POPT_TABLEEND { NULL, '\0', 0, 0, 0, NULL, NULL }
|
||||
#endif
|
||||
|
||||
#define POPT_COMMON_LIBNETAPI_EXAMPLES { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_netapi_examples, 0, "Common samba netapi example options:", NULL },
|
||||
|
||||
|
@ -28,6 +28,10 @@ extern struct poptOption popt_common_netapi_examples[];
|
||||
|
||||
#define POPT_COMMON_LIBNETAPI_EXAMPLES { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_netapi_examples, 0, "Common samba netapi example options:", NULL },
|
||||
|
||||
#ifndef POPT_TABLEEND
|
||||
#define POPT_TABLEEND { NULL, '\0', 0, 0, 0, NULL, NULL }
|
||||
#endif
|
||||
|
||||
NET_API_STATUS test_netuseradd(const char *hostname,
|
||||
const char *username);
|
||||
|
||||
|
Reference in New Issue
Block a user