diff --git a/include/getopt.h b/include/getopt.h deleted file mode 100644 index 3db90d7080..0000000000 --- a/include/getopt.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef _GETOPT_H -#define _GETOPT_H - -// Generated from: -// `grep "opt" target/include/unistd.h` - -#ifdef __cplusplus -extern "C" { -#endif - -extern char* optarg; -extern int opterr; -extern int optind; -extern int optopt; -int getopt(int argc, char *const *argv, const char *optstring); - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif diff --git a/src/header/getopt/mod.rs b/src/header/getopt/mod.rs index 13c079703b..1cc310a677 100644 --- a/src/header/getopt/mod.rs +++ b/src/header/getopt/mod.rs @@ -11,6 +11,7 @@ use crate::{ }; use core::ptr; +/// cbindgen:ignore static mut CURRENT_OPT: *mut c_char = ptr::null_mut(); /// Non-POSIX, see .