History

nfc: uapi: use kernel size_t to fix user-space builds

Fix user-space builds if it includes /usr/include/linux/nfc.h before some of other headers: /usr/include/linux/nfc.h:281:9: error: unknown type name ‘size_t’ 281 | size_t service_name_len; | ^~~~~~

Krzysztof Kozlowski committed 4 years ago

Commit 79b69a81 parent 7175f021 file · +1 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/nfc.h+1−1
@@ -278,7 +278,7 @@ struct sockaddr_nfc_llcp { · 277 unmodified lines
278 __u8 dsap; /* Destination SAP, if known */278 __u8 dsap; /* Destination SAP, if known */
279 __u8 ssap; /* Source SAP to be bound to */279 __u8 ssap; /* Source SAP to be bound to */
280 char service_name[NFC_LLCP_MAX_SERVICE_NAME]; /* Service name URI */;280 char service_name[NFC_LLCP_MAX_SERVICE_NAME]; /* Service name URI */;
281 size_t service_name_len;281 __kernel_size_t service_name_len;
282};282};
283 283
284/* NFC socket protocols */284/* NFC socket protocols */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t