Hi
The was added some incompatibiltiy/bug with version 11.5 - would you please fix that !?
select.h 11.4.1:
/* We use a macro for fd_set so that including Sockets.h afterwards
can work. */
typedef struct _types_fd_set {
fd_mask fds_bits[_howmany(FD_SETSIZE, NFDBITS)];
} _types_fd_set;
#define fd_set _types_fd_set
select.h 11.5.0:
typedef struct fd_set {
__fd_mask __fds_bits[_howmany(FD_SETSIZE, _NFDBITS)];
} v;
#if __BSD_VISIBLE
#define fds_bits __fds_bits
#endif
Regards
Thomas
Hi
Compiler gives error that type fd_set is already defined (as now #undef fd_set (what we do) is not possible anymore as fd_set is now already a typedef in the 11.5 arm libs).
-> green comment in 11.4 is now not the case anymore
select.h 11.4.1:
/* We use a macro for fd_set so that including Sockets.h afterwards
can work. */
typedef struct _types_fd_set {
fd_mask fds_bits[_howmany(FD_SETSIZE, NFDBITS)];
} _types_fd_set;
#define fd_set _types_fd_set
-> indirect typedef
select.h 11.5.0:
Directly does the fd_set typedef
typedef struct fd_set {
I hope it is clear now.
Thomas
Hi _ThomasLorenz_
Thanks for your reply.
Yes, it's more clear. I saw the difference.
Please let me know your part number and demo project which includes error. I will verify and report it. Thanks,
Jun Zhang
I have the same problem...is there any work around other than don't use 11.5? (or 11.5.1 because it doesn't seem to be fixed yet)
Thomas,
Thanks for your responce....do you happen to know how to force that update? I have the same plugin that you have but the select.h in both directories is the same (includes the fd_set define).
C:\NXP\MCUXpressoIDE_11.5.0_7232\ide\tools\arm-none-eabi\include\sys\select.h
C:\NXP\MCUXpressoIDE_11.5.0_7232\ide\plugins\com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138\tools\arm-none-eabi\include\sys\select.h
Thanks for any help,
Dan
I found the secret is to define the following macro in lwipopts.h:
#define LWIP_TIMEVAL_PRIVATE 1
Hi
Please check if my understanding is correct.
You use MCUXpresso 11.5 + select.h (in 11.5), wrong result
MCUXpresso 11.5 + select.h (in 11.4.1), correct result
If this understanding is correct, Could you please specify what wrong result you got with screenshot?
How can we reproduce your issue?
What's the part number?
Thanks,
Jun Zhang