* Removed all dependency on strverscmp
* Added libgen.h for baseline()
This commit is contained in:
parent
d37aec7651
commit
f035c3ca23
17 changed files with 20 additions and 33 deletions
|
|
@ -39,7 +39,6 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#define __USE_GNU /* strverscmp */
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <dirent.h>
|
||||
|
|
@ -71,11 +70,7 @@ clicon_file_dirent_sort(const void* arg1,
|
|||
struct dirent *d1 = (struct dirent *)arg1;
|
||||
struct dirent *d2 = (struct dirent *)arg2;
|
||||
|
||||
#ifdef HAVE_STRVERSCMP
|
||||
return strverscmp(d1->d_name, d2->d_name); /* strverscmp specific GNU function */
|
||||
#else /* HAVE_STRVERSCMP */
|
||||
return strcoll(d1->d_name, d2->d_name);
|
||||
#endif /* HAVE_STRVERSCMP */
|
||||
}
|
||||
|
||||
/*! Return alphabetically sorted files from a directory matching regexp
|
||||
|
|
|
|||
|
|
@ -56,8 +56,6 @@
|
|||
#include <limits.h>
|
||||
#include <ctype.h>
|
||||
#include <unistd.h>
|
||||
#define __USE_GNU /* strverscmp */
|
||||
#define _GNU_SOURCE
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <regex.h>
|
||||
|
|
@ -66,6 +64,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <syslog.h>
|
||||
#include <assert.h>
|
||||
#include <libgen.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <netinet/in.h>
|
||||
|
|
@ -2449,7 +2448,7 @@ yang_spec_parse_module(clicon_handle h,
|
|||
*/
|
||||
int
|
||||
yang_spec_parse_file(clicon_handle h,
|
||||
const char *filename,
|
||||
char *filename,
|
||||
yang_spec *yspec)
|
||||
{
|
||||
int retval = -1;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
#include <limits.h>
|
||||
#include <ctype.h>
|
||||
#include <unistd.h>
|
||||
#define __USE_GNU /* strverscmp */
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <regex.h>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
#include <inttypes.h>
|
||||
#include <limits.h>
|
||||
#include <ctype.h>
|
||||
#define __USE_GNU /* strverscmp */
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <regex.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue