Changeset bed8742 in rtems-libbsd


Ignore:
Timestamp:
Nov 3, 2017, 10:08:48 AM (18 months ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
647dd08ae2aa69b935c2847ea450fb824322ecae, c6261f97870562d4c797cfb1ff1ba0affb85a916
Children:
e5abb31
Parents:
79ad952
git-author:
Christian Mauderer <Christian.Mauderer@…> (11/03/17 10:08:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/10/17 12:33:03)
Message:

wpa_supplicant: Fix getopt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/contrib/wpa/wpa_supplicant/main.c

    r79ad952 rbed8742  
    2121
    2222#ifdef __rtems__
     23#define __need_getopt_newlib
     24#include <getopt.h>
    2325#include <assert.h>
    2426#include <sys/mutex.h>
     
    188190        struct wpa_params params;
    189191        struct wpa_global *global;
     192#ifdef __rtems__
     193        struct getopt_data getopt_data;
     194        memset(&getopt_data, 0, sizeof(getopt_data));
     195#define optind getopt_data.optind
     196#define optarg getopt_data.optarg
     197#define opterr getopt_data.opterr
     198#define optopt getopt_data.optopt
     199#define getopt(argc, argv, opt) getopt_r(argc, argv, "+" opt, &getopt_data)
     200#endif /* __rtems__ */
    190201
    191202        if (os_program_init())
Note: See TracChangeset for help on using the changeset viewer.