Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on FreeBSD 12 #31

Merged
merged 1 commit into from Nov 26, 2021
Merged

Fix build on FreeBSD 12 #31

merged 1 commit into from Nov 26, 2021

Conversation

tagattie
Copy link
Contributor

Include pthread.h for pthread_t to avoid the following build error on FreeBSD 12:

In file included from ../src/keyboard_x.cc:6:
../src/keymapping.h:40:3: error: unknown type name 'pthread_t'; did you mean 'pthread'?
  pthread_t tid;
  ^~~~~~~~~
  pthread
/usr/include/stdio.h:157:9: note: 'pthread' declared here
        struct pthread *_fl_owner;      /* current owner */
               ^
In file included from ../src/keyboard_x.cc:6:
../src/keymapping.h:40:13: error: field has incomplete type 'pthread'
  pthread_t tid;
            ^
/usr/include/stdio.h:157:9: note: forward declaration of 'pthread'
        struct pthread *_fl_owner;      /* current owner */
               ^
2 errors generated.

This change fixes build on FreeBSD 12.
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this pull request Nov 24, 2021
While here, temporarily mark as BROKEN on FreeBSD 12. One of the
native node modules does not compile with the following error:

In file included from ../src/keyboard_x.cc:6:
../src/keymapping.h:40:3: error: unknown type name 'pthread_t'; did you mean 'pthread'?
  pthread_t tid;
  ^~~~~~~~~
  pthread
/usr/include/stdio.h:157:9: note: 'pthread' declared here
        struct pthread *_fl_owner;      /* current owner */
               ^
In file included from ../src/keyboard_x.cc:6:
../src/keymapping.h:40:13: error: field has incomplete type 'pthread'
  pthread_t tid;
            ^
/usr/include/stdio.h:157:9: note: forward declaration of 'pthread'
        struct pthread *_fl_owner;      /* current owner */
               ^
2 errors generated.

A fix to the node module has been proposed at:
microsoft/node-native-keymap#31

Changelog:
- https://code.visualstudio.com/updates/v1_59
- https://code.visualstudio.com/updates/v1_60
- https://code.visualstudio.com/updates/v1_61
- https://code.visualstudio.com/updates/v1_62
ocochard pushed a commit to ocochard/freebsd-ports that referenced this pull request Nov 25, 2021
While here, temporarily mark as BROKEN on FreeBSD 12. One of the
native node modules does not compile with the following error:

In file included from ../src/keyboard_x.cc:6:
../src/keymapping.h:40:3: error: unknown type name 'pthread_t'; did you mean 'pthread'?
  pthread_t tid;
  ^~~~~~~~~
  pthread
/usr/include/stdio.h:157:9: note: 'pthread' declared here
        struct pthread *_fl_owner;      /* current owner */
               ^
In file included from ../src/keyboard_x.cc:6:
../src/keymapping.h:40:13: error: field has incomplete type 'pthread'
  pthread_t tid;
            ^
/usr/include/stdio.h:157:9: note: forward declaration of 'pthread'
        struct pthread *_fl_owner;      /* current owner */
               ^
2 errors generated.

A fix to the node module has been proposed at:
microsoft/node-native-keymap#31

Changelog:
- https://code.visualstudio.com/updates/v1_59
- https://code.visualstudio.com/updates/v1_60
- https://code.visualstudio.com/updates/v1_61
- https://code.visualstudio.com/updates/v1_62
@alexdima
Copy link
Member

Thank you!

@alexdima alexdima merged commit 9aafcdb into microsoft:main Nov 26, 2021
@alexdima alexdima mentioned this pull request Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants