Package: libbsd-dev
Version: 0.10.0-1
Severity: normal
Tags: upstream
X-Debbugs-Cc: colomar.6....@gmail.com

Dear Maintainer,

``libbsd-overlay`` breaks ``<sys/queue.h>``

Concretely, it hides the header from the system, showing only the BSD version.  
If I don't compile with ``libbsd`` at all, I have ``CRICLEQ_*`` definitions 
from my system library, but if I compile with ``libbsd-overlay``, those 
definitions disappear.

Example code:

.. code-block:: c

        #include <sys/queue.h>

        struct Node {
                int data;
                CIRCLEQ_ENTRY(Node) circleq;
        };

        typedef int foo;

_______________________________________

Compilation command:

- Works:  gcc test.c -S -o test.s
- Breaks: gcc test.c -S -o test.s `pkg-config --cflags libbsd-overlay`

_______________________________________

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libbsd-dev depends on:
ii  libbsd0  0.10.0-1

libbsd-dev recommends no packages.

libbsd-dev suggests no packages.

-- no debconf information

Reply via email to