Util-Linux package development
 help / color / mirror / Atom feed
* libmount python bindings and header includes
@ 2016-04-12 17:46 Mike Frysinger
  2016-04-18 11:22 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2016-04-12 17:46 UTC (permalink / raw)
  To: util-linux

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

i'm currently seeing these build warnings:
libmount/python/fs.c:110:40: warning: implicit declaration of function 'major'
libmount/python/fs.c:111:7: warning: implicit declaration of function 'minor'

this is handled for most of the code in include/c.h:
#ifdef HAVE_SYS_SYSMACROS_H
# include <sys/sysmacros.h>     /* for major, minor */
#endif

but the python code doesn't include that header.  i'm not sure what the
preference is here (make the python code pull in that header or just copy
over the sysmacros.h logic), so i'm skipping writing a patch.
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libmount python bindings and header includes
  2016-04-12 17:46 libmount python bindings and header includes Mike Frysinger
@ 2016-04-18 11:22 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2016-04-18 11:22 UTC (permalink / raw)
  To: util-linux

On Tue, Apr 12, 2016 at 01:46:53PM -0400, Mike Frysinger wrote:
> i'm currently seeing these build warnings:
> libmount/python/fs.c:110:40: warning: implicit declaration of function 'major'
> libmount/python/fs.c:111:7: warning: implicit declaration of function 'minor'
> 
> this is handled for most of the code in include/c.h:
> #ifdef HAVE_SYS_SYSMACROS_H
> # include <sys/sysmacros.h>     /* for major, minor */
> #endif
> 
> but the python code doesn't include that header.  i'm not sure what the
> preference is here (make the python code pull in that header or just copy
> over the sysmacros.h logic), so i'm skipping writing a patch.

Our c.h is so wonderful that it's expected everywhere :) Fixed.

Thanks!
    Karel


-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-18 11:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-12 17:46 libmount python bindings and header includes Mike Frysinger
2016-04-18 11:22 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox