[MONGOCRYPT-247] Conditionally define ssize_t if it is not available Created: 05/Feb/20  Updated: 28/Oct/23  Resolved: 11/Feb/20

Status: Closed
Project: Libmongocrypt
Component/s: kms_message
Affects Version/s: 1.0.1
Fix Version/s: 1.0.2

Type: Bug Priority: Critical - P2
Reporter: Jeremy Mikola Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to PHPC-1553 Conditionally define ssize_t if it is... Closed
related to MONGOCRYPT-416 Publish libmongocrypt builds for Alpi... Backlog
related to CDRIVER-3533 Ensure files referencing ssize_t incl... Backlog

 Description   

A user in mongodb/mongo-php-driver#1097 reported a problem compiling libmongocrypt on Alpine Linux (3.10 according to this Dockerfile) due to ssize_t being undefined.

This Stack Overflow thread suggests that ssize_t is supported in POSIX but not standard C, although I'm not sure why it wouldn't exist on Alpine.



 Comments   
Comment by Githook User [ 11/Feb/20 ]

Author:

{'username': 'kevinAlbs', 'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com'}

Message: MONGOCRYPT-247 add ssize_t checks
Branch: master
https://github.com/mongodb/libmongocrypt/commit/90ce62d63ec674bcd161ce6bfc49337bdccdb05f

Generated at Thu Feb 08 09:08:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.