]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - misc/lnstat.h
nstat: print useful error messages in abort() cases
[mirror_iproute2.git] / misc / lnstat.h
index 8bd7ede982931ec62005305b37cf7b4854065e40..199eb54ab2883d69bef18f3a5014ceab0b6b4885 100644 (file)
@@ -1,7 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _LNSTAT_H
 #define _LNSTAT_H
 
 #include <limits.h>
+#include <sys/select.h>
 
 #define LNSTAT_VERSION "0.02 041002"
 
@@ -39,5 +41,5 @@ struct lnstat_file *lnstat_scan_dir(const char *path, const int num_req_files,
 int lnstat_update(struct lnstat_file *lnstat_files);
 int lnstat_dump(FILE *outfd, struct lnstat_file *lnstat_files);
 struct lnstat_field *lnstat_find_field(struct lnstat_file *lnstat_files,
-                                      char *name);
+                                      const char *name);
 #endif /* _LNSTAT_H */