[issue45174] DragonflyBSD fix nis module build

2021-09-11 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The main difference between platforms is that the first argument of the foreach 
function is int on some platforms and unsigned long on others.

PR 28295 fixes code not only on DragonflyBSD, but on FreeBSD and OpenBSD, where 
it is unsigned long. It is a bug fix which should be backported. But I afraid 
that it can break code on macOS. See f6067ec336e2eff1fc1cce90c67c20b0d4e80c22. 
I am not sure that I understand it completely.

Are there compiler warnings when compile nismodule.c on macOS now? Does 
nis.cat() work on macOS now? If remove a cast to foreachfunc at line 255, will 
the compiler complain and how? Will nis.cat() work on macOS with PR 28295 
applied?

--
components: +macOS
nosy: +brett.cannon, ned.deily, ronaldoussoren, serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45174] DragonflyBSD fix nis module build

2021-09-11 Thread David CARLIER


Change by David CARLIER :


--
components: Library (Lib)
nosy: devnexen
priority: normal
pull_requests: 26711
severity: normal
status: open
title: DragonflyBSD fix nis module build
type: compile error
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com