ports/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_config.h
Yuri Victorovich 857f98b9e4 New port: net-im/telegram-desktop: Telegram Desktop messaging app
PR:		224193
Submitted by:	Henry Hu <henry.hu.sh@gmail.com>
Approved by:	adamw (mentor)
Differential Revision:	https://reviews.freebsd.org/D13434
2017-12-18 23:35:45 +00:00

20 lines
496 B
C

--- Telegram/SourceFiles/config.h.orig 2017-09-05 17:38:38 UTC
+++ Telegram/SourceFiles/config.h
@@ -270,7 +270,7 @@ inline const char *cApiDeviceModel() {
return "PC";
#elif defined Q_OS_MAC
return "Mac";
-#elif defined Q_OS_LINUX
+#elif defined Q_OS_LINUX || defined Q_OS_FREEBSD
return "PC";
#endif
}
@@ -281,6 +281,8 @@ inline const char *cApiSystemVersion() {
return "OS X";
#elif defined Q_OS_LINUX
return "Linux";
+#elif defined Q_OS_FREEBSD
+ return "FreeBSD";
#endif
}