Changeset a739190 in rtems-libbsd


Ignore:
Timestamp:
Feb 14, 2017, 10:55:18 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
284ff16
Parents:
9f2205a
git-author:
Sebastian Huber <sebastian.huber@…> (02/14/17 10:55:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/14/17 10:56:13)
Message:

SYSCTL(8): Fix command line option processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sbin/sysctl/sysctl.c

    r9f2205a ra739190  
    179179        int ch;
    180180        int warncount = 0;
     181#ifdef __rtems__
     182        struct getopt_data getopt_data;
     183        memset(&getopt_data, 0, sizeof(getopt_data));
     184#define optind getopt_data.optind
     185#define optarg getopt_data.optarg
     186#define opterr getopt_data.opterr
     187#define optopt getopt_data.optopt
     188#define getopt(argc, argv, opt) getopt_r(argc, argv, "+" opt, &getopt_data)
     189#endif /* __rtems__ */
    181190
    182191        setlocale(LC_NUMERIC, "");
Note: See TracChangeset for help on using the changeset viewer.