Don't set POSIX_SOURCE on FreeBSD.

Authored by tcberner on Jul 26 2017, 12:11 PM.

Description

Don't set POSIX_SOURCE on FreeBSD.

/wrkdirs/usr/ports/deskutils/kdepim-runtime/work/kdepim-runtime-17.07.80/resources/imap/saslplugin/xoauth2plugin.c:178:5:

error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration]
  snprintf(context->out_buf, context->out_buf_len, "user=%s\1auth=Bearer %s\1\1", authid, token);
  ^

/wrkdirs/usr/ports/deskutils/kdepim-runtime/work/kdepim-runtime-17.07.80/resources/imap/saslplugin/xoauth2plugin.c:178:5:

note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'

1 error generated.

Differential Revision: https://phabricator.kde.org/D6926

Details

Committed
tcbernerJul 27 2017, 7:22 PM
Differential Revision
D6926: Don't set POSIX_SOURCE on FreeBSD.
Parents
R44:ed31f833f1b2: Remove now unused file
Branches
Unknown
Tags
Unknown