1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-ak,v 1.5 2001/09/10 08:23:19 skrll Exp $
--- kdm/kdmshutdown.h.orig Fri Sep 4 16:33:00 1998
+++ kdm/kdmshutdown.h
@@ -49,9 +49,21 @@
class KDMShutdown : public FDialog {
Q_OBJECT
public:
+#ifdef __NetBSD__
+ KDMShutdown( int mode, QWidget* _parent=0, const char* _name=0,
+ const char* _shutdown = "/sbin/shutdown -h now",
+ const char* _restart = "/sbin/shutdown -r now");
+#else /* !__NetBSD__ */
+#ifdef __SVR4
+ KDMShutdown( int mode, QWidget* _parent=0, const char* _name=0,
+ const char* _shutdown = "/usr/sbin/halt",
+ const char* _restart = "/usr/sbin/reboot");
+#else /* !__SVR4 */
KDMShutdown( int mode, QWidget* _parent=0, const char* _name=0,
const char* _shutdown = "/sbin/halt",
const char* _restart = "/sbin/reboot");
+#endif /* __SVR4 */
+#endif /* __NetBSD__ */
private slots:
void rb_clicked(int);
void pw_entered();
|