mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-11-04 04:27:48 +00:00 
			
		
		
		
	Fix build issues on OSX
This commit is contained in:
		@@ -110,7 +110,7 @@ optional<MessageTimestamp> Message::get_timestamp() const {
 | 
			
		||||
    rd_kafka_timestamp_type_t type = RD_KAFKA_TIMESTAMP_NOT_AVAILABLE;
 | 
			
		||||
    int64_t timestamp = rd_kafka_message_timestamp(handle_.get(), &type);
 | 
			
		||||
    if (timestamp == -1 || type == RD_KAFKA_TIMESTAMP_NOT_AVAILABLE) {
 | 
			
		||||
        return none_t();
 | 
			
		||||
        return {};
 | 
			
		||||
    }
 | 
			
		||||
    return MessageTimestamp(timestamp, static_cast<MessageTimestamp::TimestampType>(type));
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user