[bcc32 Error] ws2def.h(231): E2238 Multiple declaration for 'sockaddr'
Full parser context ksrGetMac.cpp(14): #include d:\program files (x86)\embarcadero\studio\18.0\include\windows\vcl\Dialogs.hpp Dialogs.hpp(11): #include d:\program files (x86)\embarcadero\studio\18.0\include\windows\vcl\Vcl.Dialogs.hpp Vcl.Dialogs.hpp(20): #include d:\program files (x86)\embarcadero\studio\18.0\include\windows\rtl\Winapi.CommDlg.hpp Winapi.CommDlg.hpp(19): #include d:\program files (x86)\embarcadero\studio\18.0\include\windows\rtl\Winapi.ShlObj.hpp Winapi.ShlObj.hpp(20): #include d:\program files (x86)\embarcadero\studio\18.0\include\windows\rtl\Winapi.ShellAPI.hpp Winapi.ShellAPI.hpp(18): #include d:\program files (x86)\embarcadero\studio\18.0\include\windows\rtl\Winapi.Winsock2.hpp Winapi.Winsock2.hpp(22): #include d:\program files (x86)\embarcadero\studio\18.0\include\windows\sdk\winsock2.h winsock2.h(117): #include d:\program files (x86)\embarcadero\studio\18.0\include\windows\sdk\ws2def.h
fix
must add #include <winsock2.h> file
#include <winsock2.h>
#include <winsock.h>