snidump icon indicating copy to clipboard operation
snidump copied to clipboard

Make istty_stdout definition static

Open ltning opened this issue 1 year ago • 0 comments

Without this, compilation fails with

/usr/local/bin/ld: /tmp//cc1rco4B.o:(.bss+0x2080220): multiple definition of `istty_stdout'; /tmp//ccIaYcw6.o:(.bss+0x0): first defined here
/usr/local/bin/ld: /tmp//cc1rco4B.o:(.bss+0x2080221): multiple definition of `istty_stderr'; /tmp//ccIaYcw6.o:(.bss+0x1): first defined here

..at least on FreeBSD and GCC 12. With this change, it compiles and runs as prescribed.

ltning avatar Feb 29 '24 15:02 ltning