Skip to content

Build failed on windows with ACE/TAO together #3499

@laoshanxi

Description

@laoshanxi

the type definition of uid_t/gid_t/useconds_t are different from ACE and libwebsockets, libwebsockets can control useconds_t with LWS_HAVE_SUSECONDS_T, but can not control uid_t/gid_t. any solution?

C:\vcpkg\installed\x64-windows\include\ace\os_include\sys\os_types.h

#if defined (ACE_LACKS_UID_T)
typedef long uid_t;
#endif /* ACE_LACKS_UID_T */

#if defined (ACE_LACKS_GID_T)
typedef long gid_t;
#endif /* ACE_LACKS_GID_T */

C:\local\include\libwebsockets.h

typedef unsigned int uid_t;
typedef unsigned int gid_t;
typedef unsigned short sa_family_t;
#if !defined(LWS_HAVE_SUSECONDS_T)
typedef unsigned int useconds_t;
typedef int suseconds_t;
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions