mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
LibC: Make getopt
available from getopt.h
This commit is contained in:
parent
aae106e37b
commit
f8bd607733
3 changed files with 31 additions and 21 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <bits/getopt.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
@ -21,11 +22,6 @@ struct option {
|
|||
int val;
|
||||
};
|
||||
|
||||
extern int opterr;
|
||||
extern int optopt;
|
||||
extern int optind;
|
||||
extern int optreset;
|
||||
extern char* optarg;
|
||||
int getopt_long(int argc, char* const* argv, char const* short_options, const struct option* long_options, int* out_long_option_index);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue