Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/converters/fix-mime-charset/files/patch-src_argp-local.h
16461 views
1
--- src/argp-local.h.orig 2003-11-25 23:51:41 UTC
2
+++ src/argp-local.h
3
@@ -12,6 +12,7 @@
4
#include <getopt.h>
5
#include <string.h>
6
#include <iostream>
7
+#include <cstdlib>
8
9
#define __need_error_t
10
#include <errno.h>
11
@@ -65,7 +65,7 @@ const argp_option _argp_default_options[
12
13
string _argp_progname(const char *arg)
14
{
15
-char *p=strrchr(arg,'/');
16
+const char *p=strrchr(arg,'/');
17
return p==NULL ? arg : p+1;
18
}
19
20
21